Getting Access To Already Created Chart.js Chart May 28, 2023 Post a Comment I have created a BarChart with angular-chart like this: Copy Save object reference in the associative array $scope.$on('chart-create', function (event, chart) { console.log(chart.chart.canvas.id); console.log(chart.chart.config.type); //If id is the same, reference will be updated $scope.myCharts[chart.chart.canvas.id] = chart; }); Copy Access chart object by its directive id console.log($scope.myCharts[id]); Copy Share You may like these postsDynamically Add Google Map V3 Markers Using JQueryCreating A SUM Of Nested Object Values In JavaScriptBx-slider Sliding Outside Captions Along With The ImageFix Height Of An Absolute Positioned Div Tag In A List Post a Comment for "Getting Access To Already Created Chart.js Chart"
Post a Comment for "Getting Access To Already Created Chart.js Chart"