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

add ability to pass function to scale in colorScaleConfig #80

Open
alexandersimoes opened this issue Jan 15, 2020 · 0 comments
Open

add ability to pass function to scale in colorScaleConfig #80

alexandersimoes opened this issue Jan 15, 2020 · 0 comments

Comments

@alexandersimoes
Copy link

The desired behavior is the following: depending on the data range being used to calculate the colorscale, I would like to conditionally set the scale type to linear or jenks. Something like the following:

colorScaleConfig {
    scale: () => dataRange > 5 "jenks" : "linear"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant