File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,17 @@ var __visualizer_chart_images = [];
14
14
function renderChart ( id ) {
15
15
var chart = all_charts [ id ] ;
16
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
- }
17
+
20
18
// re-render the chart only if it doesn't have annotations and it is on the front-end
21
19
// 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 ;
20
+ // table/tabular charts do not have annotations.
21
+ if ( id !== 'canvas' && typeof chart . series !== 'undefined' && typeof chart . settings . series !== 'undefined' && chart . type !== 'tabular' ) {
22
+ hasAnnotation = chart . series . length - chart . settings . series . length > 1 ;
23
+ }
24
+
25
+ if ( ! hasAnnotation ) {
26
+ renderSpecificChart ( id , all_charts [ id ] ) ;
24
27
}
25
- renderSpecificChart ( id , all_charts [ id ] ) ;
26
28
}
27
29
28
30
function renderSpecificChart ( id , chart ) {
@@ -259,6 +261,7 @@ var __visualizer_chart_images = [];
259
261
if ( settings . series ) {
260
262
switch ( chart . type ) {
261
263
case 'table' :
264
+ case 'tabular' :
262
265
for ( i in settings . series ) {
263
266
i = parseInt ( i ) ;
264
267
if ( ! series [ i + 1 ] ) {
You can’t perform that action at this time.
0 commit comments