Skip to content

Custom Chart Support πŸ“ˆ

Compare
Choose a tag to compare
@sedouard sedouard released this 10 Aug 18:50
· 18 commits to master since this release

Features

  • Custom charts are now supported. Thanks to @SeanSobey!
  • Chart.js 2.6 and below supported

Adding custom charts

To use custom charts, also use the options object to add your chart config and controller, like so:

var myChartOptions = {
  charts: [{
    type: 'custom',
    baseType: 'bar',
    controller: {
     draw: function(ease) {},
      ...
    },
    defaults: {
      ...
    },
  }]
}

var chartJsOptions = {
    type: 'custom',
    data: myChartData,
    options: myChartOptions
};

Read here to see how to write custom charts.