Skip to content

Commit 96a4e9b

Browse files
swap gridlines settings between axis
1 parent bad7f16 commit 96a4e9b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

classes/Visualizer/Render/Sidebar/Graph.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,16 @@ protected function _renderHorizontalAxisSettings() {
184184
self::_renderSectionStart( esc_html__( 'Grid Lines', 'visualizer' ), false );
185185
self::_renderTextItem(
186186
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' ),
187+
'hAxis[gridlines][count]',
188+
isset( $this->hAxis['gridlines']['count'] ) ? $this->hAxis['gridlines']['count'] : '',
189+
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' ),
190190
5
191191
);
192192

193193
self::_renderColorPickerItem(
194194
esc_html__( 'Color', 'visualizer' ),
195-
'vAxis[gridlines][color]',
196-
isset( $this->vAxis['gridlines']['color'] ) ? $this->vAxis['gridlines']['color'] : null,
195+
'hAxis[gridlines][color]',
196+
isset( $this->hAxis['gridlines']['color'] ) ? $this->hAxis['gridlines']['color'] : null,
197197
'#ccc'
198198
);
199199
self::_renderSectionEnd();
@@ -296,16 +296,16 @@ protected function _renderVerticalAxisSettings() {
296296
self::_renderSectionStart( esc_html__( 'Grid Lines', 'visualizer' ), false );
297297
self::_renderTextItem(
298298
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' ),
299+
'vAxis[gridlines][count]',
300+
isset( $this->vAxis['gridlines']['count'] ) ? $this->vAxis['gridlines']['count'] : '',
301+
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' ),
302302
5
303303
);
304304

305305
self::_renderColorPickerItem(
306306
esc_html__( 'Color', 'visualizer' ),
307-
'hAxis[gridlines][color]',
308-
isset( $this->hAxis['gridlines']['color'] ) ? $this->hAxis['gridlines']['color'] : null,
307+
'vAxis[gridlines][color]',
308+
isset( $this->vAxis['gridlines']['color'] ) ? $this->vAxis['gridlines']['color'] : null,
309309
'#ccc'
310310
);
311311
self::_renderSectionEnd();

0 commit comments

Comments
 (0)