Releases: vmpowerio/chartjs-node
Releases · vmpowerio/chartjs-node
Bumped Chart.js & Retina Pixel Support
Destroy Chart.js On JSDOM Destroy
Chart.js Reference
Access the Chart.js library within the DOM
-
Access the chart.js library before rendering charts. See the Global Chart Reference section to see how.
-
You can use this to make any manipulation to Chart.js without having
chartjs-node
get in the way.
Thanks @SeanSobey!
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.
Support Chart.js@<=2.5.*
Merge pull request #18 from vmpowerio/support-chartjs-2.5.0 Support chart.js 2.5.0
ReadableStream Fix
Fixed issue #14 which blocked the ReadableStream of chart.js images from being piped.
Access Data Url of Chart
Support Chart.js@<=2.4.*
Support for Chart.js 2.40! 🎉🎊
- Thanks to @kdekooter @FilipeDominguesGit for working on the compatibility issues and contributing a great PR!
Use [email protected].*
Updated package.json
to use [email protected].* as a peerDependency.
Chartjs Draw Plugins
- Support for Chartjs Draw Plugins. Thanks @maxpaj!