Skip to content

Commit 1ee4031

Browse files
gridlines are numeric
1 parent 1f78f81 commit 1ee4031

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

classes/Visualizer/Render/Sidebar/Graph.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ protected function _renderHorizontalAxisSettings() {
197197
'hAxis[gridlines][count]',
198198
isset( $this->hAxis['gridlines']['count'] ) ? $this->hAxis['gridlines']['count'] : '',
199199
esc_html__( 'The approximate number of horizontal gridlines inside the chart area. You can specify a value of 1 to only draw one gridline, 0 to draw no gridlines or -1 to automatically compute the number of gridlines. Any other number will be used to compute the minSpacing between gridlines.', 'visualizer' ),
200-
5
200+
5,
201+
'number',
202+
array( 'min' => -1, 'max' => 1000, 'step' => 1 )
201203
);
202204

203205
self::_renderColorPickerItem(
@@ -311,7 +313,9 @@ protected function _renderVerticalAxisSettings() {
311313
'vAxis[gridlines][count]',
312314
isset( $this->vAxis['gridlines']['count'] ) ? $this->vAxis['gridlines']['count'] : '',
313315
esc_html__( 'The approximate number of vertical gridlines inside the chart area. You can specify a value of 1 to only draw one gridline, 0 to draw no gridlines or -1 to automatically compute the number of gridlines. Any other number will be used to compute the minSpacing between gridlines.', 'visualizer' ),
314-
5
316+
5,
317+
'number',
318+
array( 'min' => -1, 'max' => 1000, 'step' => 1 )
315319
);
316320

317321
self::_renderColorPickerItem(

0 commit comments

Comments
 (0)