Skip to content

Commit d7e0b47

Browse files
Merge pull request #753 from contactashish13/issue-750
Google GEO chart is not rendering if 3rd data column is added
2 parents dc457fa + 1873b97 commit d7e0b47

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/render-google.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ var __visualizer_chart_images = [];
1717

1818
// re-render the chart only if it doesn't have annotations and it is on the front-end
1919
// this is to prevent the chart from showing "All series on a given axis must be of the same data type" during resize.
20-
// table/tabular charts do not have annotations.
21-
if(id !== 'canvas' && typeof chart.series !== 'undefined' && typeof chart.settings.series !== 'undefined' && chart.type !== 'tabular'){
20+
// remember, some charts do not support annotations so they should not be included in this.
21+
var no_annotation_charts = ['tabular', 'timeline', 'gauge', 'geo', 'bubble', 'candlestick'];
22+
if(id !== 'canvas' && typeof chart.series !== 'undefined' && typeof chart.settings.series !== 'undefined' && ! no_annotation_charts.includes(chart.type) ) {
2223
hasAnnotation = chart.series.length - chart.settings.series.length > 1;
2324
}
2425

0 commit comments

Comments
 (0)