- customSectors receives structural update + additional "percents" feature (define ranges in %).
customSectors: {
percents: true,
ranges: [{
color : "#43bf58",
lo : 0,
hi : 50
},{
color : "#ff3b30",
lo : 51,
hi : 100
}]
}
Example: http://justgage.com/examples/custom-sectors.html
- hideInnerShadow replaced with showInnerShadow due to performance issues with shadows turned on by default
- relative sizing fixed (it was not working due to wrong canvas size calculations)
- Title feature removed - after many years, it's finally here :)
- JustGage.prototype.destroy() - added method to remove gauge node from DOM
- fixed toorshia#146
Fixing filter paths trying to fetch invalid URLs toorshia#245
- onAnimationEnd - callback function after gauge animation ends
- minTxt & maxTxt - Show custom min and max text - toorshia#193
- fix - toorshia#194
- titlePosition - 'above' or 'below'
- titleFontFamily - customize font-family for the title
- valueFontFamily - customize font-family for the value
- donut pointer - render configurable triangle pointer in donut mode - demo at http://justgage.com/examples/pointer.html
- reverse - reverse the gauge direction - demo at http://justgage.com/examples/reverse.html
- pointer - render triangular value pointer - demo at http://justgage.com/examples/pointer.html
- defaults - option to define common config object when you're creating multiple gauges - demo at http://justgage.com/examples/defaults.html
- fixed shadow id issue (same ids were being generated)
- fix - toorshia#102
- use HTML5 'data' attributes of the DOM Element to render the gauge. (Note: data attributes override the constructor options, if present.)
- parentNode - use instead of id, attaches gauge to node which is outside of DOM tree - demo at http://justgage.com/examples/custom-node.html
- width - force gauge width
- height - force gauge height
- fix - toorshia#49
- fix - toorshia#46
- customSectors - define one or many value ranges with custom gauge color - demo at http://justgage.com/examples/custom-sectors.html
- counter - option to animate value in counting fashion - check demo at http://justgage.com/examples/counter.html
- refresh() - added optional 'max' parameter to use when you need to update max value - demo at http://justgage.com/examples/refresh-maximum.html
- decimals - option to define/limit number of decimals when not using humanFriendly or customRenderer to display value
- fixed a missing parameters bug when calling generateShadow() for IE < 9
- fixed text y-position for hidden divs - workaround for Raphael 'dy' bug - DmitryBaranovskiy/raphael#491
- 'show' parameters, like showMinMax are now 'hide' because I am lame developer - please update these in your setups
- Min and Max labels are now auto-off when in donut mode
- Start angle in donut mode is now 90
- donutStartAngle - option to define start angle for donut
- Option to define custom rendering function for displayed value
- Fix for human friendly option when refreshing
- Config.value is now updated after gauge refresh
- Donut display mode added
- Option to hide value label
- Option to enable responsive gauge size
- Removed default title attribute
- Option to accept min and max defined as string values
- Option to configure value symbol
- Fixed bad aspect ratio calculations
- Option to configure minimum font size for all texts
- Option to show shorthand big numbers (human friendly)