We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ea128d2 + c7d8f7d commit b1482b2Copy full SHA for b1482b2
js/render-google.js
@@ -12,6 +12,16 @@ var __visualizer_chart_images = [];
12
var rendered_charts = [];
13
14
function renderChart(id) {
15
+ var chart = all_charts[id];
16
+ var hasAnnotation = false;
17
+ if(id !== 'canvas' && typeof chart.series !== 'undefined' && typeof chart.settings.series !== 'undefined'){
18
+ hasAnnotation = chart.series.length - chart.settings.series.length > 1;
19
+ }
20
+ // re-render the chart only if it doesn't have annotations and it is on the front-end
21
+ // this is to prevent the chart from showing "All series on a given axis must be of the same data type" during resize.
22
+ if(hasAnnotation){
23
+ return;
24
25
renderSpecificChart(id, all_charts[id]);
26
}
27
0 commit comments