rendro / easy-pie-chart

easy pie chart is a lightweight plugin to draw simple, animated pie charts for single values

Home Page:http://rendro.github.io/easy-pie-chart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scaleLength does not work.

wharter1980 opened this issue · comments

I have tried both variations below.

this one I can change the barColor but scaleLength will not update:

        $('#pendingChart').data('easyPieChart').update(50);
        $('#pendingChart').data('easyPieChart').options['scaleLength'] = 2;

(which I cannot get animate to work either)

and this way it does not work either:

var $chart = $(".easy-pie-chart");
$chart.data('easyPieChart', null);
$chart.easyPieChart({
    easing: 'easeOutCirc',
    barColor: '#a57225',
    trackColor: '#f9f9f9',
    scaleColor: false,
    percent: 10,
    scaleLength: 5,
    lineCap: 'butt',
    lineWidth: 5,
    size: 50,
    animate: { duration: 2000, enabled: true },
    onStep: function (from, to, percent) {
        $(this.el).find('.percent').text(Math.round(percent));
    }
});