From bb48cb3a0553a76e4b04de90bf183e21daf7a6c4 Mon Sep 17 00:00:00 2001 From: serdarkok Date: Thu, 6 Apr 2017 10:09:56 +0300 Subject: [PATCH] Update jquery.easypiechart.js --- dist/jquery.easypiechart.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/jquery.easypiechart.js b/dist/jquery.easypiechart.js index 5ac3dc1..0df4556 100644 --- a/dist/jquery.easypiechart.js +++ b/dist/jquery.easypiechart.js @@ -187,7 +187,7 @@ var CanvasRenderer = function(el, options) { } // draw bar - drawCircle(color, options.lineWidth, percent / 100); + drawCircle(color, options.lineWidth, percent / options.total); }.bind(this); /** @@ -224,6 +224,7 @@ var EasyPieChart = function(el, opts) { lineWidth: 3, trackWidth: undefined, size: 110, + total: 100, rotate: 0, animate: { duration: 1000,