easy-pie-chart icon indicating copy to clipboard operation
easy-pie-chart copied to clipboard

Unable to update trackColor

Open maximQa-kgd opened this issue 6 years ago • 2 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?(:

maximQa-kgd avatar Jan 16 '19 18:01 maximQa-kgd

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

maximQa-kgd avatar Jan 19 '19 11:01 maximQa-kgd

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

MarioPerini avatar Mar 01 '19 12:03 MarioPerini