Skip to content

Commit 89df65b

Browse files
cannot show multiple charts on one page
#709 (comment)
1 parent 8eac534 commit 89df65b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/render-facade.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@
132132
* If an `id` is provided, that particular chart will load.
133133
*/
134134
function showChart(id) {
135-
var viz = visualizer;
135+
// clone the visualizer object so that the original object is not affected.
136+
var viz = Object.assign({}, visualizer);
136137
if(id){
137138
viz.id = id;
138139
}

0 commit comments

Comments
 (0)