Skip to content

Commit 29c8ab9

Browse files
Axis Text Color option applies to wrong axis
1 parent e46d7bf commit 29c8ab9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

classes/Visualizer/Render/Sidebar/Columnar.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ protected function _renderVerticalAxisGeneralSettings() {
8888
parent::_renderVerticalAxisGeneralSettings();
8989
self::_renderColorPickerItem(
9090
esc_html__( 'Axis Text Color', 'visualizer' ),
91-
'hAxis[textStyle]',
92-
isset( $this->hAxis['textStyle'] ) ? $this->hAxis['textStyle'] : null,
91+
'vAxis[textStyle]',
92+
isset( $this->vAxis['textStyle'] ) ? $this->vAxis['textStyle'] : null,
9393
'#000'
9494
);
9595
}
@@ -105,8 +105,8 @@ protected function _renderHorizontalAxisGeneralSettings() {
105105
parent::_renderHorizontalAxisGeneralSettings();
106106
self::_renderColorPickerItem(
107107
esc_html__( 'Axis Text Color', 'visualizer' ),
108-
'vAxis[textStyle]',
109-
isset( $this->vAxis['textStyle'] ) ? $this->vAxis['textStyle'] : null,
108+
'hAxis[textStyle]',
109+
isset( $this->hAxis['textStyle'] ) ? $this->hAxis['textStyle'] : null,
110110
'#000'
111111
);
112112
}

classes/Visualizer/Render/Sidebar/Linear.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ protected function _renderHorizontalAxisGeneralSettings() {
9494

9595
self::_renderColorPickerItem(
9696
esc_html__( 'Axis Text Color', 'visualizer' ),
97-
'vAxis[textStyle]',
98-
isset( $this->vAxis['textStyle'] ) ? $this->vAxis['textStyle'] : null,
97+
'hAxis[textStyle]',
98+
isset( $this->hAxis['textStyle'] ) ? $this->hAxis['textStyle'] : null,
9999
'#000'
100100
);
101101

@@ -114,8 +114,8 @@ protected function _renderVerticalAxisGeneralSettings() {
114114

115115
self::_renderColorPickerItem(
116116
esc_html__( 'Axis Text Color', 'visualizer' ),
117-
'hAxis[textStyle]',
118-
isset( $this->hAxis['textStyle'] ) ? $this->hAxis['textStyle'] : null,
117+
'vAxis[textStyle]',
118+
isset( $this->vAxis['textStyle'] ) ? $this->vAxis['textStyle'] : null,
119119
'#000'
120120
);
121121

0 commit comments

Comments
 (0)