- Easier CSS targeting of Peity-created canvas elements.
- Percentage dimensions (
width: "100%"
) now work.
- Fix reference to
devicePixelRatio
- thanks @kcivey.
- component.json for Bower.
- Finally in the jQuery plugin registry: http://plugins.jquery.com/peity/
- Multiple calls to
peity()
on the same element now update the existing chart rather than creating a new one. - Zero values in a bar chart are now present as a single-pixel bar.
- Spacing between bars can now be configured.
- Pie charts can now be formed of more than 2 segments.
- The colours of bar and pie charts can now be set dynamically based on their value.
- Re-write of the internals so that the actual
<canvas>
element is only created once and$.wrapInner
is no longer used to contain everything in a separate<span>
. - Peity now automatically reads data-* attributes and passes them as options when instantiating a chart. @buunguyen
- Workaround for Linux/Chrome bug when using #arc to draw a full circle not having a zero starting angle.
- Line and bar charts now support negative numbers.
- Fix - rename radius to diameter.
- Allow line charts with no stroke.
- Support for iPhone 4 retina display.
- For a line graph with a single value show a straight line instead of nothing.
- Allow options to be passed a function called with a
this
value of the element in question.
- Fix that if the numerator of a pie is zero an empty pie is drawn instead of nothing. @munikho
- Remove the little border that appears around the slice of a pie when the slice has a darker colour than the plate. @munikho
- Tweaks to aid minification.
- Don't blow up if
<canvas>
isn't supported.
- Add "strokeWidth" option to line charts.
- Add "max" option to line and bar chart types.
- Add line and bar graph types and expose an interface for adding more. @ismasan and me.
First official version. Thanks to @ismasan and @olivernn for adding support for the "change" event and making it work in Firefox respectively.
It works!