jQuery Doughnut / Donut Chart Example

This example demonstrates how to create a simple Doughnut/Donut Chart using CanvasJS Chart plugin for jQuery. To know more about the available features please refer to our getting started section.


Basic Doughnut / Donut Chart

Try Editing The Code

Notes

Once the chart has been rendered, you can get a reference to it by calling CanvasJSChart method on the DOM element without passing any parameter as shown below. Once you have the reference you can update the chart by changing its options.

var chart = $(".chartContainer").CanvasJSChart(); 
chart.options.title.text += ": Updated";
chart.render();

Please look into the reference section for all the supported options.


If you have any questions, please feel free to ask in our forums.Ask Question

2 Comments

If you have any questions, please feel free to ask in our forums. Ask Question