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.
1 parent bd3e613 commit fc64e67Copy full SHA for fc64e67
src/angular-fusioncharts.js
@@ -112,6 +112,18 @@
112
}
113
}, true);
114
} else {
115
+ attrs.$observe('type', function (newVal) {
116
+ setTimeout(function () {
117
+ chartConfigObject.type = newVal;
118
+ if (chart)
119
+ {
120
+ chart.dispose();
121
+ chart = new FusionCharts(chartConfigObject);
122
+ scope[attrs.chartobject] = chart;
123
+ chart.render();
124
+ }
125
+ }, 0);
126
+ }, true)
127
attrs.$observe('chart', function (newVal) {
128
setTimeout(function () {
129
chartConfigObject.dataSource.chart = JSON.parse(newVal);
@@ -280,4 +292,4 @@
280
292
281
293
282
294
]);
283
-}());
295
+}());
0 commit comments