Custom Chart Support π
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.