Donutty Versions Save

Create SVG donut charts with JavaScript (or jQuery)

2.4.0

1 year ago

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

4 years ago

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

1.2.3

4 years ago

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 https://github.com/simeydotme/donutty/pull/5 for original commit.

1.2.1

5 years ago

No longer throws error about styling an non-existing text element.

Thanks to @i1group for their contribution in resolving this long-standing issue.

1.1.2

5 years ago

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

1.2.0

5 years ago

This release allows the options to be passed with text as a Function.

  • add text function 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.