Skip to content

ChartJS

Chart.js is a comprehensive charting library which is simple to use.

Check the documentation!

Creating a Chart

To create a chart you must instantiate the chart class using the canvas context and an object see the usage page in the docs for more info.

Line graph

{
  type: 'line',
  data: [5,10,15,20,25],
  options: 
}

Updating a Chart