Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
trojanware opened this issue Aug 13, 2015 · 1 comment

Comments

@trojanware
Copy link

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.

@josezulu
Copy link

Maybe this helps: #170 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants