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

Unable to update trackColor

maximQa-kgd opened this issue · comments

I've got a website with different color schemes and on changing schemes I try to change charts, so barColor value changes fine, but trcakColor doesn't. Is possible to update trackColor value?
I change these values like this
$('.some-class').data('easyPieChart').options['barColor'] = '#ff0000';
$('.some-class').data('easyPieChart').options['trackColor'] = '#ffffff';
I also tried this option
$('.some-class').data('easyPieChart').options.barColor = '#ff0000';
$('.some-class').data('easyPieChart').options.trackColor = '#ffffff';
And again barColor changes its value, but trackColor doesn't. Any ideas?(:

I found that in version 1.0.1 colorTrack changes perfectly, but in version 2.1.7 doesn't. Is it possible to fix?

Why not:
$('.some-class').easyPieChart({ barColor:'#ff0000, trackColor:'#ffffff });