PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.11.2
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.11.2
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 3.10.4 All 148 releases
visualizer / classes / Visualizer / Gutenberg / src / Components / Sidebar / SizeAxis.js

SizeAxis.js in Visualizer – Tables & Charts Manager with Built-in AI Generator 3.11.2, at classes/Visualizer/Gutenberg/src/Components/Sidebar/SizeAxis.js

111 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * WordPress dependencies
3 */
4 const { __ } = wp.i18n;
5
6 const {
7 Component,
8 Fragment
9 } = wp.element;
10
11 const {
12 ExternalLink,
13 PanelBody,
14 TextControl
15 } = wp.components;
16
17 class SizeAxis extends Component {
18 constructor() {
19 super( ...arguments );
20 }
21
22 render() {
23
24 const settings = this.props.chart['visualizer-settings'];
25
26 return (
27 <PanelBody
28 title={ __( 'Size Axis' ) }
29 initialOpen={ false }
30 className="visualizer-advanced-panel"
31 >
32
33 <TextControl
34 label={ __( 'Minimum Values' ) }
35 help={ __( 'Determines the minimum values of size axis.' ) }
36 value={ settings.sizeAxis.minValue }
37 onChange={ e => {
38 settings.sizeAxis.minValue = e;
39 this.props.edit( settings );
40 } }
41 />
42
43 <TextControl
44 label={ __( 'Maximum Values' ) }
45 help={ __( 'Determines the maximum values of size axis.' ) }
46 value={ settings.sizeAxis.maxValue }
47 onChange={ e => {
48 settings.sizeAxis.maxValue = e;
49 this.props.edit( settings );
50 } }
51 />
52
53 <TextControl
54 label={ __( 'Minimum Marker Radius' ) }
55 help={ __( 'Determines the radius of the smallest possible bubbles, in pixels.' ) }
56 value={ settings.sizeAxis.minSize }
57 onChange={ e => {
58 settings.sizeAxis.minSize = e;
59 this.props.edit( settings );
60 } }
61 />
62
63 <TextControl
64 label={ __( 'Maximum Marker Radius' ) }
65 help={ __( 'Determines the radius of the largest possible bubbles, in pixels.' ) }
66 value={ settings.sizeAxis.maxSize }
67 onChange={ e => {
68 settings.sizeAxis.maxSize = e;
69 this.props.edit( settings );
70 } }
71 />
72
73 <TextControl
74 label={ __( 'Marker Opacity' ) }
75 help={ __( 'The opacity of the markers, where 0.0 is fully transparent and 1.0 is fully opaque.' ) }
76 value={ settings.markerOpacity }
77 onChange={ e => {
78 settings.markerOpacity = e;
79 this.props.edit( settings );
80 } }
81 />
82
83 <Fragment>
84
85 <TextControl
86 label={ __( 'Number Format' ) }
87 help={ __( 'Enter custom format pattern to apply to this series value.' ) }
88 value={ settings.series[0].format }
89 onChange={ e => {
90 settings.series[0].format = e;
91 this.props.edit( settings );
92 } }
93 />
94
95 <p>
96 { __( 'For number axis labels, this is a subset of the formatting ' ) }
97 <ExternalLink href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details">
98 { __( 'ICU pattern set.' ) }
99 </ExternalLink>
100 { __( ' 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.' ) }
101 </p>
102
103 </Fragment>
104
105 </PanelBody>
106 );
107 }
108 }
109
110 export default SizeAxis;
111