This changeset exposes the createClass method in lib/core, and adds a third argument to it so that you can pass the dataKey value that was previously fixed in the dataKeys variable.
E. g. if you want to use https://github.com/Regaddi/Chart.StackedBar.js, you would do something like var StackedBarChart = require('react-chartjs').createClass('StackedBar', ['getBarsAtEvent'], 'bars'); (provided you previously registered StackedBar with Chart.js, of course).
This changeset exposes the
createClass
method inlib/core
, and adds a third argument to it so that you can pass thedataKey
value that was previously fixed in thedataKeys
variable.E. g. if you want to use https://github.com/Regaddi/Chart.StackedBar.js, you would do something like
var StackedBarChart = require('react-chartjs').createClass('StackedBar', ['getBarsAtEvent'], 'bars');
(provided you previously registeredStackedBar
with Chart.js, of course).