PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 1.4.2.2
Visualizer – Tables & Charts Manager with Built-in AI Generator v1.4.2.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
← All changes | classes/Visualizer/Render/Sidebar/Graph.php +148 -204 3.0.51.4.2.2 View file →
@@ -18,8 +18,10 @@
18 18 // | MA 02110-1301 USA |
19 19 // +----------------------------------------------------------------------+
20 20 // | Author: Eugene Manuilov <eugene@manuilov.org> |
21 21 // +----------------------------------------------------------------------+
22 +
23 +
22 24 /**
23 25 * Base class for sidebar settigns of graph based charts.
24 26 *
25 27 * @category Visualizer
@@ -76,11 +78,11 @@
76 78 $this->_horizontalGridLines = true;
77 79
78 80 $this->_positions = array(
79 81 '' => '',
80 - 'in' => esc_html__( 'Inside the chart', 'visualizer' ),
81 - 'out' => esc_html__( 'Outside the chart', 'visualizer' ),
82 - 'none' => esc_html__( 'None', 'visualizer' ),
82 + 'in' => esc_html__( 'Inside the chart', Visualizer_Plugin::NAME ),
83 + 'out' => esc_html__( 'Outside the chart', Visualizer_Plugin::NAME ),
84 + 'none' => esc_html__( 'None', Visualizer_Plugin::NAME ),
83 85 );
84 86 }
85 87
86 88 /**
@@ -91,37 +93,37 @@
91 93 * @access protected
92 94 */
93 95 protected function _renderChartTitleSettings() {
94 96 self::_renderTextItem(
95 - esc_html__( 'Chart Title', 'visualizer' ),
97 + esc_html__( 'Chart Title', Visualizer_Plugin::NAME ),
96 98 'title',
97 99 $this->title,
98 - esc_html__( 'Text to display above the chart.', 'visualizer' )
100 + esc_html__( 'Text to display above the chart.', Visualizer_Plugin::NAME )
99 101 );
100 102
101 103 self::_renderSelectItem(
102 - esc_html__( 'Chart Title Position', 'visualizer' ),
104 + esc_html__( 'Chart Title Position', Visualizer_Plugin::NAME ),
103 105 'titlePosition',
104 106 $this->titlePosition,
105 107 $this->_positions,
106 - esc_html__( 'Where to place the chart title, compared to the chart area.', 'visualizer' )
108 + esc_html__( 'Where to place the chart title, compared to the chart area.', Visualizer_Plugin::NAME )
107 109 );
108 110
109 111 self::_renderColorPickerItem(
110 - esc_html__( 'Chart Title Color', 'visualizer' ),
112 + esc_html__( 'Chart Title Color', Visualizer_Plugin::NAME ),
111 113 'titleTextStyle[color]',
112 114 isset( $this->titleTextStyle['color'] ) ? $this->titleTextStyle['color'] : null,
113 115 '#000'
114 116 );
115 117
116 - echo '<div class="viz-section-delimiter"></div>';
118 + echo '<div class="section-delimiter"></div>';
117 119
118 120 self::_renderSelectItem(
119 - esc_html__( 'Axes Titles Position', 'visualizer' ),
121 + esc_html__( 'Axes Titles Position', Visualizer_Plugin::NAME ),
120 122 'axisTitlesPosition',
121 123 $this->axisTitlesPosition,
122 124 $this->_positions,
123 - esc_html__( 'Determines where to place the axis titles, compared to the chart area.', 'visualizer' )
125 + esc_html__( 'Determines where to place the axis titles, compared to the chart area.', Visualizer_Plugin::NAME )
124 126 );
125 127 }
126 128
127 129 /**
@@ -130,38 +132,38 @@
130 132 * @since 1.4.0
131 133 *
132 134 * @access protected
133 135 */
134 - protected function _renderHorizontalAxisGeneralSettings() {
136 + protected function _renderHorizontalAxisGeneratSettings() {
135 137 self::_renderTextItem(
136 - esc_html__( 'Axis Title', 'visualizer' ),
138 + esc_html__( 'Axis Title', Visualizer_Plugin::NAME ),
137 139 'hAxis[title]',
138 140 isset( $this->hAxis['title'] ) ? $this->hAxis['title'] : '',
139 - esc_html__( 'The title of the horizontal axis.', 'visualizer' )
141 + esc_html__( 'The title of the horizontal axis.', Visualizer_Plugin::NAME )
140 142 );
141 143
142 144 self::_renderSelectItem(
143 - esc_html__( 'Text Position', 'visualizer' ),
145 + esc_html__( 'Text Position', Visualizer_Plugin::NAME ),
144 146 'vAxis[textPosition]',
145 147 isset( $this->vAxis['textPosition'] ) ? $this->vAxis['textPosition'] : '',
146 148 $this->_positions,
147 - esc_html__( 'Position of the horizontal axis text, relative to the chart area.', 'visualizer' )
149 + esc_html__( 'Position of the horizontal axis text, relative to the chart area.', Visualizer_Plugin::NAME )
148 150 );
149 151
150 152 self::_renderSelectItem(
151 - esc_html__( 'Direction', 'visualizer' ),
153 + esc_html__( 'Direction', Visualizer_Plugin::NAME ),
152 154 'hAxis[direction]',
153 155 isset( $this->hAxis['direction'] ) ? $this->hAxis['direction'] : '',
154 156 array(
155 157 '' => '',
156 - '1' => esc_html__( 'Identical Direction', 'visualizer' ),
157 - '-1' => esc_html__( 'Reverse Direction', 'visualizer' ),
158 + '1' => esc_html__( 'Identical Direction', Visualizer_Plugin::NAME ),
159 + '-1' => esc_html__( 'Reverse Direction', Visualizer_Plugin::NAME ),
158 160 ),
159 - esc_html__( 'The direction in which the values along the horizontal axis grow.', 'visualizer' )
161 + esc_html__( 'The direction in which the values along the horizontal axis grow.', Visualizer_Plugin::NAME )
160 162 );
161 163
162 164 self::_renderColorPickerItem(
163 - esc_html__( 'Base Line Color', 'visualizer' ),
165 + esc_html__( 'Base Line Color', Visualizer_Plugin::NAME ),
164 166 'vAxis[baselineColor]',
165 167 isset( $this->vAxis['baselineColor'] ) ? $this->vAxis['baselineColor'] : null,
166 168 '#000'
167 169 );
@@ -174,66 +176,66 @@
174 176 *
175 177 * @access protected
176 178 */
177 179 protected function _renderHorizontalAxisSettings() {
178 - self::_renderGroupStart( esc_html__( 'Horizontal Axis Settings', 'visualizer' ) );
179 - self::_renderSectionStart( esc_html__( 'General Settings', 'visualizer' ), false );
180 - $this->_renderHorizontalAxisGeneralSettings();
180 + self::_renderGroupStart( esc_html__( 'Horizontal Axis Settings', Visualizer_Plugin::NAME ) );
181 + self::_renderSectionStart( esc_html__( 'General Settings', Visualizer_Plugin::NAME ), false );
182 + $this->_renderHorizontalAxisGeneratSettings();
181 183 self::_renderSectionEnd();
182 184
183 - if ( $this->_horizontalGridLines ) {
184 - self::_renderSectionStart( esc_html__( 'Grid Lines', 'visualizer' ), false );
185 - self::_renderTextItem(
186 - esc_html__( 'Count', 'visualizer' ),
187 - 'vAxis[gridlines][count]',
188 - isset( $this->vAxis['gridlines']['count'] ) ? $this->vAxis['gridlines']['count'] : '',
189 - esc_html__( 'The number of horizontal gridlines inside the chart area. Minimum value is 2. Specify -1 to automatically compute the number of gridlines.', 'visualizer' ),
190 - 5
191 - );
185 + if ( $this->_horizontalGridLines ) {
186 + self::_renderSectionStart( esc_html__( 'Grid Lines', Visualizer_Plugin::NAME ), false );
187 + self::_renderTextItem(
188 + esc_html__( 'Count', Visualizer_Plugin::NAME ),
189 + 'vAxis[gridlines][count]',
190 + isset( $this->vAxis['gridlines']['count'] ) ? $this->vAxis['gridlines']['count'] : '',
191 + esc_html__( 'The number of horizontal gridlines inside the chart area. Minimum value is 2. Specify -1 to automatically compute the number of gridlines.', Visualizer_Plugin::NAME ),
192 + 5
193 + );
192 194
193 - self::_renderColorPickerItem(
194 - esc_html__( 'Color', 'visualizer' ),
195 - 'vAxis[gridlines][color]',
196 - isset( $this->vAxis['gridlines']['color'] ) ? $this->vAxis['gridlines']['color'] : null,
197 - '#ccc'
198 - );
199 - self::_renderSectionEnd();
195 + self::_renderColorPickerItem(
196 + esc_html__( 'Color', Visualizer_Plugin::NAME ),
197 + 'vAxis[gridlines][color]',
198 + isset( $this->vAxis['gridlines']['color'] ) ? $this->vAxis['gridlines']['color'] : null,
199 + '#ccc'
200 + );
201 + self::_renderSectionEnd();
200 202
201 - self::_renderSectionStart( esc_html__( 'Minor Grid Lines', 'visualizer' ), false );
202 - self::_renderTextItem(
203 - esc_html__( 'Count', 'visualizer' ),
204 - 'vAxis[minorGridlines][count]',
205 - isset( $this->vAxis['minorGridlines']['count'] ) ? $this->vAxis['minorGridlines']['count'] : '',
206 - esc_html__( 'The number of horizontal minor gridlines between two regular gridlines.', 'visualizer' ),
207 - 0
208 - );
203 + self::_renderSectionStart( esc_html__( 'Minor Grid Lines', Visualizer_Plugin::NAME ), false );
204 + self::_renderTextItem(
205 + esc_html__( 'Count', Visualizer_Plugin::NAME ),
206 + 'vAxis[minorGridlines][count]',
207 + isset( $this->vAxis['minorGridlines']['count'] ) ? $this->vAxis['minorGridlines']['count'] : '',
208 + esc_html__( 'The number of horizontal minor gridlines between two regular gridlines.', Visualizer_Plugin::NAME ),
209 + 0
210 + );
209 211
210 - self::_renderColorPickerItem(
211 - esc_html__( 'Color', 'visualizer' ),
212 - 'vAxis[minorGridlines][color]',
213 - isset( $this->vAxis['minorGridlines']['color'] ) ? $this->vAxis['minorGridlines']['color'] : null,
214 - null
215 - );
216 - self::_renderSectionEnd();
217 - }
212 + self::_renderColorPickerItem(
213 + esc_html__( 'Color', Visualizer_Plugin::NAME ),
214 + 'vAxis[minorGridlines][color]',
215 + isset( $this->vAxis['minorGridlines']['color'] ) ? $this->vAxis['minorGridlines']['color'] : null,
216 + null
217 + );
218 + self::_renderSectionEnd();
219 + }
218 220
219 - if ( $this->_verticalGridLines ) {
220 - self::_renderSectionStart( esc_html__( 'View Window', 'visualizer' ), false );
221 - self::_renderTextItem(
222 - esc_html__( 'Maximum Value', 'visualizer' ),
223 - 'hAxis[viewWindow][max]',
224 - isset( $this->hAxis['viewWindow']['max'] ) ? $this->hAxis['viewWindow']['max'] : '',
225 - 'The maximum vertical data value to render.'
226 - );
221 + if ( $this->_verticalGridLines ) {
222 + self::_renderSectionStart( esc_html__( 'View Window', Visualizer_Plugin::NAME ), false );
223 + self::_renderTextItem(
224 + esc_html__( 'Maximum Value', Visualizer_Plugin::NAME ),
225 + 'hAxis[viewWindow][max]',
226 + isset( $this->hAxis['viewWindow']['max'] ) ? $this->hAxis['viewWindow']['max'] : '',
227 + 'The maximum vertical data value to render.'
228 + );
227 229
228 - self::_renderTextItem(
229 - esc_html__( 'Minimum Value', 'visualizer' ),
230 - 'hAxis[viewWindow][min]',
231 - isset( $this->hAxis['viewWindow']['min'] ) ? $this->hAxis['viewWindow']['min'] : '',
232 - 'The minimum vertical data value to render.'
233 - );
234 - self::_renderSectionEnd();
235 - }
230 + self::_renderTextItem(
231 + esc_html__( 'Minimum Value', Visualizer_Plugin::NAME ),
232 + 'hAxis[viewWindow][min]',
233 + isset( $this->hAxis['viewWindow']['min'] ) ? $this->hAxis['viewWindow']['min'] : '',
234 + 'The minimum vertical data value to render.'
235 + );
236 + self::_renderSectionEnd();
237 + }
236 238 self::_renderGroupEnd();
237 239 }
238 240
239 241 /**
@@ -244,36 +246,36 @@
244 246 * @access protected
245 247 */
246 248 protected function _renderVerticalAxisGeneralSettings() {
247 249 self::_renderTextItem(
248 - esc_html__( 'Axis Title', 'visualizer' ),
250 + esc_html__( 'Axis Title', Visualizer_Plugin::NAME ),
249 251 'vAxis[title]',
250 252 isset( $this->vAxis['title'] ) ? $this->vAxis['title'] : '',
251 - esc_html__( 'The title of the vertical axis.', 'visualizer' )
253 + esc_html__( 'The title of the vertical axis.', Visualizer_Plugin::NAME )
252 254 );
253 255
254 256 self::_renderSelectItem(
255 - esc_html__( 'Text Position', 'visualizer' ),
257 + esc_html__( 'Text Position', Visualizer_Plugin::NAME ),
256 258 'hAxis[textPosition]',
257 259 isset( $this->hAxis['textPosition'] ) ? $this->hAxis['textPosition'] : '',
258 260 $this->_positions,
259 - esc_html__( 'Position of the vertical axis text, relative to the chart area.', 'visualizer' )
261 + esc_html__( 'Position of the vertical axis text, relative to the chart area.', Visualizer_Plugin::NAME )
260 262 );
261 263
262 264 self::_renderSelectItem(
263 - esc_html__( 'Direction', 'visualizer' ),
265 + esc_html__( 'Direction', Visualizer_Plugin::NAME ),
264 266 'vAxis[direction]',
265 267 isset( $this->vAxis['direction'] ) ? $this->vAxis['direction'] : '',
266 268 array(
267 269 '' => '',
268 - '1' => esc_html__( 'Identical Direction', 'visualizer' ),
269 - '-1' => esc_html__( 'Reverse Direction', 'visualizer' ),
270 + '1' => esc_html__( 'Identical Direction', Visualizer_Plugin::NAME ),
271 + '-1' => esc_html__( 'Reverse Direction', Visualizer_Plugin::NAME ),
270 272 ),
271 - esc_html__( 'The direction in which the values along the vertical axis grow.', 'visualizer' )
273 + esc_html__( 'The direction in which the values along the vertical axis grow.', Visualizer_Plugin::NAME )
272 274 );
273 275
274 276 self::_renderColorPickerItem(
275 - esc_html__( 'Base Line Color', 'visualizer' ),
277 + esc_html__( 'Base Line Color', Visualizer_Plugin::NAME ),
276 278 'hAxis[baselineColor]',
277 279 isset( $this->hAxis['baselineColor'] ) ? $this->hAxis['baselineColor'] : null,
278 280 '#000'
279 281 );
@@ -286,66 +288,66 @@
286 288 *
287 289 * @access protected
288 290 */
289 291 protected function _renderVerticalAxisSettings() {
290 - self::_renderGroupStart( esc_html__( 'Vertical Axis Settings', 'visualizer' ) );
291 - self::_renderSectionStart( esc_html__( 'General Settings', 'visualizer' ), false );
292 + self::_renderGroupStart( esc_html__( 'Vertical Axis Settings', Visualizer_Plugin::NAME ) );
293 + self::_renderSectionStart( esc_html__( 'General Settings', Visualizer_Plugin::NAME ), false );
292 294 $this->_renderVerticalAxisGeneralSettings();
293 295 self::_renderSectionEnd();
294 296
295 - if ( $this->_verticalGridLines ) {
296 - self::_renderSectionStart( esc_html__( 'Grid Lines', 'visualizer' ), false );
297 - self::_renderTextItem(
298 - esc_html__( 'Count', 'visualizer' ),
299 - 'hAxis[gridlines][count]',
300 - isset( $this->hAxis['gridlines']['count'] ) ? $this->hAxis['gridlines']['count'] : '',
301 - esc_html__( 'The number of vertical gridlines inside the chart area. Minimum value is 2. Specify -1 to automatically compute the number of gridlines.', 'visualizer' ),
302 - 5
303 - );
297 + if ( $this->_verticalGridLines ) {
298 + self::_renderSectionStart( esc_html__( 'Grid Lines', Visualizer_Plugin::NAME ), false );
299 + self::_renderTextItem(
300 + esc_html__( 'Count', Visualizer_Plugin::NAME ),
301 + 'hAxis[gridlines][count]',
302 + isset( $this->hAxis['gridlines']['count'] ) ? $this->hAxis['gridlines']['count'] : '',
303 + esc_html__( 'The number of vertical gridlines inside the chart area. Minimum value is 2. Specify -1 to automatically compute the number of gridlines.', Visualizer_Plugin::NAME ),
304 + 5
305 + );
304 306
305 - self::_renderColorPickerItem(
306 - esc_html__( 'Color', 'visualizer' ),
307 - 'hAxis[gridlines][color]',
308 - isset( $this->hAxis['gridlines']['color'] ) ? $this->hAxis['gridlines']['color'] : null,
309 - '#ccc'
310 - );
311 - self::_renderSectionEnd();
307 + self::_renderColorPickerItem(
308 + esc_html__( 'Color', Visualizer_Plugin::NAME ),
309 + 'hAxis[gridlines][color]',
310 + isset( $this->hAxis['gridlines']['color'] ) ? $this->hAxis['gridlines']['color'] : null,
311 + '#ccc'
312 + );
313 + self::_renderSectionEnd();
312 314
313 - self::_renderSectionStart( esc_html__( 'Minor Grid Lines', 'visualizer' ), false );
314 - self::_renderTextItem(
315 - esc_html__( 'Count', 'visualizer' ),
316 - 'hAxis[minorGridlines][count]',
317 - isset( $this->hAxis['minorGridlines']['count'] ) ? $this->hAxis['minorGridlines']['count'] : '',
318 - esc_html__( 'The number of vertical minor gridlines between two regular gridlines.', 'visualizer' ),
319 - 0
320 - );
315 + self::_renderSectionStart( esc_html__( 'Minor Grid Lines', Visualizer_Plugin::NAME ), false );
316 + self::_renderTextItem(
317 + esc_html__( 'Count', Visualizer_Plugin::NAME ),
318 + 'hAxis[minorGridlines][count]',
319 + isset( $this->hAxis['minorGridlines']['count'] ) ? $this->hAxis['minorGridlines']['count'] : '',
320 + esc_html__( 'The number of vertical minor gridlines between two regular gridlines.', Visualizer_Plugin::NAME ),
321 + 0
322 + );
321 323
322 - self::_renderColorPickerItem(
323 - esc_html__( 'Color', 'visualizer' ),
324 - 'hAxis[minorGridlines][color]',
325 - isset( $this->hAxis['minorGridlines']['color'] ) ? $this->hAxis['minorGridlines']['color'] : null,
326 - null
327 - );
328 - self::_renderSectionEnd();
329 - }
324 + self::_renderColorPickerItem(
325 + esc_html__( 'Color', Visualizer_Plugin::NAME ),
326 + 'hAxis[minorGridlines][color]',
327 + isset( $this->hAxis['minorGridlines']['color'] ) ? $this->hAxis['minorGridlines']['color'] : null,
328 + null
329 + );
330 + self::_renderSectionEnd();
331 + }
330 332
331 - if ( $this->_horizontalGridLines ) {
332 - self::_renderSectionStart( esc_html__( 'View Window', 'visualizer' ), false );
333 - self::_renderTextItem(
334 - esc_html__( 'Maximum Value', 'visualizer' ),
335 - 'vAxis[viewWindow][max]',
336 - isset( $this->vAxis['viewWindow']['max'] ) ? $this->vAxis['viewWindow']['max'] : '',
337 - 'The maximum vertical data value to render.'
338 - );
333 + if ( $this->_horizontalGridLines ) {
334 + self::_renderSectionStart( esc_html__( 'View Window', Visualizer_Plugin::NAME ), false );
335 + self::_renderTextItem(
336 + esc_html__( 'Maximum Value', Visualizer_Plugin::NAME ),
337 + 'vAxis[viewWindow][max]',
338 + isset( $this->vAxis['viewWindow']['max'] ) ? $this->vAxis['viewWindow']['max'] : '',
339 + 'The maximum vertical data value to render.'
340 + );
339 341
340 - self::_renderTextItem(
341 - esc_html__( 'Minimum Value', 'visualizer' ),
342 - 'vAxis[viewWindow][min]',
343 - isset( $this->vAxis['viewWindow']['min'] ) ? $this->vAxis['viewWindow']['min'] : '',
344 - 'The minimum vertical data value to render.'
345 - );
346 - self::_renderSectionEnd();
347 - }
342 + self::_renderTextItem(
343 + esc_html__( 'Minimum Value', Visualizer_Plugin::NAME ),
344 + 'vAxis[viewWindow][min]',
345 + isset( $this->vAxis['viewWindow']['min'] ) ? $this->vAxis['viewWindow']['min'] : '',
346 + 'The minimum vertical data value to render.'
347 + );
348 + self::_renderSectionEnd();
349 + }
348 350 self::_renderGroupEnd();
349 351 }
350 352
351 353 /**
@@ -367,16 +369,16 @@
367 369 *
368 370 * @access protected
369 371 */
370 372 protected function _renderSeriesSettings() {
371 - self::_renderGroupStart( esc_html__( 'Series Settings', 'visualizer' ) );
372 - for ( $i = 1, $cnt = count( $this->__series ); $i < $cnt; $i++ ) {
373 - if ( ! empty( $this->__series[ $i ]['label'] ) ) {
374 - self::_renderSectionStart( esc_html( $this->__series[ $i ]['label'] ), false );
375 - $this->_renderSeries( $i - 1 );
376 - self::_renderSectionEnd();
373 + self::_renderGroupStart( esc_html__( 'Series Settings', Visualizer_Plugin::NAME ) );
374 + for ( $i = 1, $cnt = count( $this->__series ); $i < $cnt; $i++ ) {
375 + if ( !empty( $this->__series[$i]['label'] ) ) {
376 + self::_renderSectionStart( esc_html( $this->__series[$i]['label'] ), false );
377 + $this->_renderSeries( $i - 1 );
378 + self::_renderSectionEnd();
379 + }
377 380 }
378 - }
379 381 self::_renderGroupEnd();
380 382 }
381 383
382 384 /**
@@ -388,84 +390,26 @@
388 390 * @param int $index The series index.
389 391 */
390 392 protected function _renderSeries( $index ) {
391 393 self::_renderSelectItem(
392 - esc_html__( 'Visible In Legend', 'visualizer' ),
394 + esc_html__( 'Visible In Legend', Visualizer_Plugin::NAME ),
393 395 'series[' . $index . '][visibleInLegend]',
394 - isset( $this->series[ $index ]['visibleInLegend'] ) ? $this->series[ $index ]['visibleInLegend'] : '',
396 + isset( $this->series[$index]['visibleInLegend'] ) ? $this->series[$index]['visibleInLegend'] : '',
395 397 array(
396 398 '' => '',
397 - '0' => esc_html__( 'No', 'visualizer' ),
398 - '1' => esc_html__( 'Yes', 'visualizer' ),
399 + '0' => esc_html__( 'No', Visualizer_Plugin::NAME ),
400 + '1' => esc_html__( 'Yes', Visualizer_Plugin::NAME ),
399 401 ),
400 - esc_html__( 'Determines whether the series has to be presented in the legend or not.', 'visualizer' )
402 + esc_html__( 'Determines whether the series has to be presented in the legend or not.', Visualizer_Plugin::NAME )
401 403 );
402 404
403 405 $this->_renderFormatField( $index );
404 406
405 407 self::_renderColorPickerItem(
406 - esc_html__( 'Color', 'visualizer' ),
408 + esc_html__( 'Color', Visualizer_Plugin::NAME ),
407 409 'series[' . $index . '][color]',
408 - isset( $this->series[ $index ]['color'] ) ? $this->series[ $index ]['color'] : null,
410 + isset( $this->series[$index]['color'] ) ? $this->series[$index]['color'] : null,
409 411 null
410 412 );
411 413 }
412 414
413 - /**
414 - * Renders format field for horizontal axis.
415 - *
416 - * @since 1.4.3
417 - *
418 - * @access protected
419 - */
420 - protected function _renderHorizontalAxisFormatField() {
421 - self::_renderTextItem(
422 - esc_html__( 'Number Format', 'visualizer' ),
423 - 'hAxis[format]',
424 - isset( $this->hAxis['format'] ) ? $this->hAxis['format'] : '',
425 - sprintf(
426 - '%s<br><br>%s<br><br>%s',
427 - esc_html__( 'Enter custom format pattern to apply to horizontal axis labels.', 'visualizer' ),
428 - sprintf(
429 - esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.', 'visualizer' ),
430 - '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">',
431 - '</a>'
432 - ),
433 - sprintf(
434 - esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.', 'visualizer' ),
435 - '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">',
436 - '</a>'
437 - )
438 - )
439 - );
440 - }
441 -
442 - /**
443 - * Renders format field for vertical axis settings.
444 - *
445 - * @since 1.4.3
446 - *
447 - * @access protected
448 - */
449 - protected function _renderVerticalAxisFormatField() {
450 - self::_renderTextItem(
451 - esc_html__( 'Number Format', 'visualizer' ),
452 - 'vAxis[format]',
453 - isset( $this->vAxis['format'] ) ? $this->vAxis['format'] : '',
454 - sprintf(
455 - '%s<br><br>%s<br><br>%s',
456 - esc_html__( 'Enter custom format pattern to apply to vertical axis labels.', 'visualizer' ),
457 - sprintf(
458 - esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.', 'visualizer' ),
459 - '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">',
460 - '</a>'
461 - ),
462 - sprintf(
463 - esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.', 'visualizer' ),
464 - '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">',
465 - '</a>'
466 - )
467 - )
468 - );
469 - }
470 -
471 -}
415 +}