/** * WordPress dependencies */ const { __ } = wp.i18n; const { Component } = wp.element; const { ColorPalette } = wp.blockEditor || wp.editor; const { BaseControl, PanelBody, TextControl } = wp.components; class ResidueSettings extends Component { constructor() { super( ...arguments ); } render() { const settings = this.props.chart['visualizer-settings']; return ( { settings.sliceVisibilityThreshold = e; this.props.edit( settings ); } } /> { settings.pieResidueSliceLabel = e; this.props.edit( settings ); } } /> { settings.pieResidueSliceColor = e; this.props.edit( settings ); } } /> ); } } export default ResidueSettings;