/** * WordPress dependencies */ const { __ } = wp.i18n; const { Component, Fragment } = wp.element; const { ColorPalette } = wp.editor; const { BaseControl, ExternalLink, PanelBody, SelectControl, TextControl } = wp.components; class PieSettings extends Component { constructor() { super( ...arguments ); } render() { const settings = this.props.chart['visualizer-settings']; return ( { settings.format = e; this.props.edit( settings ); } } />

{ __( 'For number axis labels, this is a subset of the formatting ' ) } { __( 'ICU pattern set.' ) } { __( ' For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #%% percentage format then your values will be multiplied by 100.' ) }

{ __( 'For date axis labels, this is a subset of the date formatting ' ) } { __( 'ICU date and time format.' ) }

{ settings.is3D = e; this.props.edit( settings ); } } /> { settings.reverseCategories = e; this.props.edit( settings ); } } /> { settings.pieSliceText = e; this.props.edit( settings ); } } /> { settings.pieHole = e; this.props.edit( settings ); } } /> { settings.pieStartAngle = e; this.props.edit( settings ); } } /> { settings.pieSliceBorderColor = e; this.props.edit( settings ); } } />
); } } export default PieSettings;