Skip to content

scaleLength does not work. #199

@wharter1980

Description

@wharter1980

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));
    }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions