| @@ -28,9 +28,9 @@ | ||
| 28 | 28 | * |
| 29 | 29 | * @since 1.0.0 |
| 30 | 30 | * @abstract |
| 31 | 31 | */ |
| 32 | -abstract class Visualizer_Render_Sidebar_Graph extends Visualizer_Render_Sidebar_Google { | |
| 32 | +abstract class Visualizer_Render_Sidebar_Graph extends Visualizer_Render_Sidebar { | |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Determines whether we need to render vertical gridlines options or not. |
| 36 | 36 | * |
| @@ -112,9 +112,9 @@ | ||
| 112 | 112 | isset( $this->titleTextStyle['color'] ) ? $this->titleTextStyle['color'] : null, |
| 113 | 113 | '#000' |
| 114 | 114 | ); |
| 115 | 115 | |
| 116 | - echo '<div class="viz-section-delimiter"></div>'; | |
| 116 | + echo '<div class="section-delimiter"></div>'; | |
| 117 | 117 | |
| 118 | 118 | self::_renderSelectItem( |
| 119 | 119 | esc_html__( 'Axes Titles Position', 'visualizer' ), |
| 120 | 120 | 'axisTitlesPosition', |
| @@ -140,10 +140,10 @@ | ||
| 140 | 140 | ); |
| 141 | 141 | |
| 142 | 142 | self::_renderSelectItem( |
| 143 | 143 | esc_html__( 'Text Position', 'visualizer' ), |
| 144 | - 'hAxis[textPosition]', | |
| 145 | - isset( $this->hAxis['textPosition'] ) ? $this->hAxis['textPosition'] : '', | |
| 144 | + 'vAxis[textPosition]', | |
| 145 | + isset( $this->vAxis['textPosition'] ) ? $this->vAxis['textPosition'] : '', | |
| 146 | 146 | $this->_positions, |
| 147 | 147 | esc_html__( 'Position of the horizontal axis text, relative to the chart area.', 'visualizer' ) |
| 148 | 148 | ); |
| 149 | 149 | |
| @@ -183,18 +183,18 @@ | ||
| 183 | 183 | if ( $this->_horizontalGridLines ) { |
| 184 | 184 | self::_renderSectionStart( esc_html__( 'Grid Lines', 'visualizer' ), false ); |
| 185 | 185 | self::_renderTextItem( |
| 186 | 186 | esc_html__( 'Count', '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' ), | |
| 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 | 190 | 5 |
| 191 | 191 | ); |
| 192 | 192 | |
| 193 | 193 | self::_renderColorPickerItem( |
| 194 | 194 | esc_html__( 'Color', 'visualizer' ), |
| 195 | - 'hAxis[gridlines][color]', | |
| 196 | - isset( $this->hAxis['gridlines']['color'] ) ? $this->hAxis['gridlines']['color'] : null, | |
| 195 | + 'vAxis[gridlines][color]', | |
| 196 | + isset( $this->vAxis['gridlines']['color'] ) ? $this->vAxis['gridlines']['color'] : null, | |
| 197 | 197 | '#ccc' |
| 198 | 198 | ); |
| 199 | 199 | self::_renderSectionEnd(); |
| 200 | 200 | |
| @@ -252,10 +252,10 @@ | ||
| 252 | 252 | ); |
| 253 | 253 | |
| 254 | 254 | self::_renderSelectItem( |
| 255 | 255 | esc_html__( 'Text Position', 'visualizer' ), |
| 256 | - 'vAxis[textPosition]', | |
| 257 | - isset( $this->vAxis['textPosition'] ) ? $this->vAxis['textPosition'] : '', | |
| 256 | + 'hAxis[textPosition]', | |
| 257 | + isset( $this->hAxis['textPosition'] ) ? $this->hAxis['textPosition'] : '', | |
| 258 | 258 | $this->_positions, |
| 259 | 259 | esc_html__( 'Position of the vertical axis text, relative to the chart area.', 'visualizer' ) |
| 260 | 260 | ); |
| 261 | 261 | |
| @@ -295,18 +295,18 @@ | ||
| 295 | 295 | if ( $this->_verticalGridLines ) { |
| 296 | 296 | self::_renderSectionStart( esc_html__( 'Grid Lines', 'visualizer' ), false ); |
| 297 | 297 | self::_renderTextItem( |
| 298 | 298 | esc_html__( 'Count', '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' ), | |
| 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 | 302 | 5 |
| 303 | 303 | ); |
| 304 | 304 | |
| 305 | 305 | self::_renderColorPickerItem( |
| 306 | 306 | esc_html__( 'Color', 'visualizer' ), |
| 307 | - 'vAxis[gridlines][color]', | |
| 308 | - isset( $this->vAxis['gridlines']['color'] ) ? $this->vAxis['gridlines']['color'] : null, | |
| 307 | + 'hAxis[gridlines][color]', | |
| 308 | + isset( $this->hAxis['gridlines']['color'] ) ? $this->hAxis['gridlines']['color'] : null, | |
| 309 | 309 | '#ccc' |
| 310 | 310 | ); |
| 311 | 311 | self::_renderSectionEnd(); |
| 312 | 312 | |
| @@ -425,14 +425,14 @@ | ||
| 425 | 425 | sprintf( |
| 426 | 426 | '%s<br><br>%s<br><br>%s', |
| 427 | 427 | esc_html__( 'Enter custom format pattern to apply to horizontal axis labels.', 'visualizer' ), |
| 428 | 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 #%% percentage format then your values will be multiplied by 100.', 'visualizer' ), | |
| 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 #%% percentage format then your values will be multiplied by 100.','visualizer' ), | |
| 430 | 430 | '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">', |
| 431 | 431 | '</a>' |
| 432 | 432 | ), |
| 433 | 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' ), | |
| 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 | 435 | '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">', |
| 436 | 436 | '</a>' |
| 437 | 437 | ) |
| 438 | 438 | ) |
| @@ -454,14 +454,14 @@ | ||
| 454 | 454 | sprintf( |
| 455 | 455 | '%s<br><br>%s<br><br>%s', |
| 456 | 456 | esc_html__( 'Enter custom format pattern to apply to vertical axis labels.', 'visualizer' ), |
| 457 | 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 #%% percentage format then your values will be multiplied by 100.', 'visualizer' ), | |
| 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 #%% percentage format then your values will be multiplied by 100.','visualizer' ), | |
| 459 | 459 | '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">', |
| 460 | 460 | '</a>' |
| 461 | 461 | ), |
| 462 | 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' ), | |
| 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 | 464 | '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">', |
| 465 | 465 | '</a>' |
| 466 | 466 | ) |
| 467 | 467 | ) |