Skip to content

Commit c74c0a4

Browse files
Merge pull request #1013 from Codeinwp/bugfix/1012
Fixed table chart rendering issue in Gutenberg block
2 parents 3e5d745 + 4ac8adc commit c74c0a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

classes/Visualizer/Gutenberg/Block.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,10 @@ public function get_visualizer_data( $post ) {
367367
$data['visualizer-data'] = $this->format_chart_data( $data['visualizer-data'], $data['visualizer-series'] );
368368
}
369369

370+
if ( ! isset( $data['visualizer-settings']['hAxis']['format'] ) ) {
371+
$data['visualizer-settings']['hAxis']['format'] = '';
372+
}
373+
370374
$data['visualizer-data-exploded'] = '';
371375
// handle annotations for google charts
372376
if ( 'GoogleCharts' === $library ) {

0 commit comments

Comments
 (0)