Releases: chartist-js/chartist
v1.3.0
v1.2.1
v1.2.0
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.0
⚠ BREAKING CHANGES
- new exports names
- methods in EventEmitter were renamed:
addEventHandler
->on
,removeEventHandler
->off
(73e1c44)
Features
Phenakistoscope
This Release brings you SMIL animations with an easy to use API! You can now animate the elements on your chart with the Chartist.Svg API. Check the gh-page for more details.
This release also includes more events like created (thanks to @drewbarontini and @jordanwade for the PR!), draw event for line and a draw event for area.
Proto
This release only includes changes relevant for developers. Chartist.js does now include a prototype helper module and all the charts are refactored to inherit from a base chart. This makes maintainability easier in the future and will also help with problems that have a polymorph nature (like multiple charts combined / combo chart).
In the prototype helper module (chartist.class.js) there is a fallback mechanism for the constructor functions so you can still call chart constructors as functions without the new
keyword. The fallback mechanism will create a new object with the chart as prototype and delegate the constructor call. This way you can write var chart = new Chartist.Line();
but also var chart = Chartist.Line();
without any drawbacks. This provides the necessary backwards compatibility.