Releases: simeydotme/donutty
2.4.0 - Inverted Donut Origins
Thanks to @tobie we now have the ability to start the Donut's filling from the Top instead of always from the Bottom.
Check the Readme for the new option (anchor)
2.0.0 Responsive Update
I've bumped the version to 2.0.0 with some security updates, and also fixing #7 and #8 .. I had to bump version to a major as there's potentially breaking changes when enabling the responsive mode.
I had to trade-off some code which worked with document-fragments to use innerHTML as it seemed browsers were not updating the layer tree when the preserveAspectRatio attribute was modified programatically.
I also updated the build to gulp4
Fix width/height on Firefox
Cherry picked @ivan-compucorp commit regarding adding px to the width/height for standards compliance. This should resolve issues with browsers not rendering the size correctly.
Refer to #5 for original commit.
Fix bug with Text feature
No longer throws error about styling an non-existing text element.
Thanks to @i1group for their contribution in resolving this long-standing issue.
Add "text" property
This release allows the options to be passed with text as a Function.
- add
textfunction option - refactor some code
see the `Readme.md for more information
note; text function will only work if the donut chart is explicitly created in Javascript, it's not possible to declare a function in the <div data-x /> html style.
Initialise on Dom Ready
This release allows the donuts to be initialised when the DOM is ready.
- add a dom-ready wrapper for jQuery
- add a dom-ready listener for vanilla