score:25
Accepted answer
Just loop through Chart.instances
Chart.helpers.each(Chart.instances, function(instance){
alert(instance.chart.canvas.id)
})
Fiddle - http://jsfiddle.net/bkq5Lq8b/
Source: stackoverflow.com
Related Query
- How to retrieve ChartJS instance after initialization
- how to reset the graph/chart after zoomin, pan using chartjs
- How to add ChartJS code in Html2Pdf to view image
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- chartjs how to apply after animation
- chartjs - How to access chart instance in a custom tooltip callback
- How to retrieve the instance of a chart that is not global
- VueJS + Chartjs - Chart only renders after code change
- How do you get the width of a datalabel from the Chartjs plugin after the chart animates?
- My Chartjs is not updating after setstate full code attached Reactjs Update
- How Can I Get An Instance of a ChartJS Bar Chart Using Angular
- How can I reload data from chartjs after JSON file was modified in a HTTP POST
- How can i launch a modal after clicking each bar in Bar chart in Chartjs and also how can i get its data?
- How to run Chart.js samples using source code
- How to set ChartJS Y axis title?
- How to disable chartjs legendclick
- how to change size of point in ChartJS
- How to disable a tooltip for a specific dataset in ChartJS
- How to modify chartjs tooltip so i can add customized strings in tooltips
- How to modify bar width in Chartjs 2 bar charts
- ChartJs 2.0 How do I obtain point information being clicked upon?
- how to plot multiple time series in chartjs where each time series has different times
- How to make integer scale in Chartjs
- How get sum of total values in stackedBar ChartJs
- chartjs : how to set custom scale in bar chart
- Chartjs linechart with only one point - how to center
- How to fix chart Legends width-height with overflow scroll in ChartJS
- ChartJS : How to leave just points without lines
- ChartJS – How to show border on empty pie chart?
- How to add label for ChartJs Legend
More Query from same tag
- Chart.js - How to Add Text in the Middle of the Chart?
- ng2-charts - Tolltip color dont match line color
- How to change the Y-Axis to show $ in graph
- Style a specific X-axis label with ChartJS
- Truncating canvas labels in ChartJS while keeping the full label value in the tooltips
- How to customize chart js Bar chart shape?
- Chart.js - consolidating days to month totals along the x (time) axis?
- How can I show JSON data in Chart.js with Javascript if static values are working but dynamic from mySQL are not?
- Export Canvas Charts to png and pdf
- Chart.Js Doughnut not calculating JSON data properly
- Chart.js Legend Padding-Left
- Resizing a Chart.js chart
- Avoid data resetting when toggling series
- Vue.js component for Chart.js - strange issue on AJAX reload
- Chart.js not showing legends
- Is there a way to display a chart label that has no data behind it in Chart.js
- Bar chart from Vue-chartjs doesn't render
- labelling the pop up Chart js
- In rails Label X and Y axis in chart. Implemented through chartkick and chart.js
- cartesian coordinate system with chart.js
- Dynamically add x-axis in React using ChartJS
- how to show chart using chart js
- ChartJs canvas showing previous graph when changing Graph types
- subcategories for each bar in multibar chart using chartjs
- Chart.js change vertical position of points
- chartjs align origin of the axis to the corner of graph
- How to edit the ID of each button in a class if a condition is true in JavaScript?
- Chart.js - How To Show Value of Label as Percent of X and Y Values - Currently Always 100%
- How to create a line on a chart using chartjs-plugin-annotation
- How to sum array value in chart.js inside loop function?