Home forums Using CanvasJS How to get graph type after chart is rendered Reply To: How to get graph type after chart is rendered

#11596

Sanjoy
Moderator

In canvasjs.min.js or canvasjs.js all chart initialized variables can be reffered using chart.options. So, here you can use chart.options.data[0].type to get assigned chart type of first dataSeries.

Source: http://canvasjs.com/docs/charts/basics-of-creating-html5-chart/updating-chart-options/