[Chartjs]-Using Createjs and Chartjs

1πŸ‘

βœ…

It looks like chart.js is canvas-based. You can use a canvas a a source for an EaselJS bitmap, and include it in your content.

var chart = document.getElementById("chart-canvas-id");
var bmp = new createjs.Bitmap(chart);
stage.addChild(bmp);
stage.update();

The EaselJS Stage requires children to be a display object, so this is probably the best way to work with chart.js content.

Leave a comment