Skip to content

Commit 9651cfd

Browse files
color axis does not retain values
1 parent 4fb9b73 commit 9651cfd

File tree

1 file changed

+3
-3
lines changed
  • classes/Visualizer/Render/Sidebar/Type

1 file changed

+3
-3
lines changed

classes/Visualizer/Render/Sidebar/Type/Geo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,21 +224,21 @@ protected function _renderColorAxisSettings() {
224224
self::_renderColorPickerItem(
225225
esc_html__( 'Minimum Value', 'visualizer' ),
226226
'colorAxis[colors][]',
227-
! empty( $this->colorAxis['color'][0] ) ? $this->colorAxis['color'][0] : null,
227+
! empty( $this->colorAxis['colors'][0] ) ? $this->colorAxis['colors'][0] : null,
228228
'#efe6dc'
229229
);
230230

231231
self::_renderColorPickerItem(
232232
esc_html__( 'Intermediate Value', 'visualizer' ),
233233
'colorAxis[colors][]',
234-
! empty( $this->colorAxis['color'][1] ) ? $this->colorAxis['color'][1] : null,
234+
! empty( $this->colorAxis['colors'][1] ) ? $this->colorAxis['colors'][1] : null,
235235
'#82bf7c'
236236
);
237237

238238
self::_renderColorPickerItem(
239239
esc_html__( 'Maximum Value', 'visualizer' ),
240240
'colorAxis[colors][]',
241-
! empty( $this->colorAxis['color'][2] ) ? $this->colorAxis['color'][2] : null,
241+
! empty( $this->colorAxis['colors'][2] ) ? $this->colorAxis['colors'][2] : null,
242242
'#109618'
243243
);
244244

0 commit comments

Comments
 (0)