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

Feature Request: Ability to pass other data to function assigned to barColor

Open trojanware opened this issue 8 years ago • 1 comments

While using a function as value for "barColor", I have come across people needing arbitrary data(apart from percentage) to decide the color of a bar. We could add a property in the config, eg: "barColorArgs" which accepts an array of props from the chart config, which will be passed to the function(in addition to percentage). I will be sending a pull request in a couple of days, will be glad to get some feedback on this.

trojanware avatar Aug 13 '15 13:08 trojanware

Maybe this helps: https://github.com/rendro/easy-pie-chart/pull/170#issuecomment-564689453

josezulu avatar Dec 11 '19 19:12 josezulu