diff --git a/src/easypiechart.js b/src/easypiechart.js index 0dc3822..5e7c113 100644 --- a/src/easypiechart.js +++ b/src/easypiechart.js @@ -9,6 +9,7 @@ var EasyPieChart = function(el, opts) { trackWidth: undefined, size: 110, rotate: 0, + currentValue: 0, animate: { duration: 1000, enabled: true @@ -60,6 +61,8 @@ var EasyPieChart = function(el, opts) { } } + currentValue = parseFloat(options.currentValue); + // check for jQuery easing if (typeof(options.easing) === 'string' && typeof(jQuery) !== 'undefined' && jQuery.isFunction(jQuery.easing[options.easing])) { options.easing = jQuery.easing[options.easing];