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

Color scale customization #15

Open
ud-klee opened this issue Mar 30, 2020 · 3 comments
Open

Color scale customization #15

ud-klee opened this issue Mar 30, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@ud-klee
Copy link

ud-klee commented Mar 30, 2020

Like logarithmic scale? I tried to achieve that my overriding getColor() to translate the linear ratio to logarithmic and that fulfilled part of my needs. However, since the ratio is dependent on the data range i'm not able to apply a fixed scale. Perhaps make this an option and make the callback receive also the actual value in addition to just the ratio? Thanks.

@StephanWagner
Copy link
Owner

Yeah, good idea. I'm not too happy with the color options altogether and wanted to improve them anyway. Maybe I'll get around that while in quarantine.

@StephanWagner StephanWagner added the enhancement New feature or request label Apr 8, 2020
@tijsgerwe
Copy link

Hi I'm pretty new to JavaScript.. and I am doing a project for school where we are building a site about traveling. We are using this JavaScript map to let the user know where he has been. Right now, all the information is loaded in the map; but the color of all the countries is black. When I try to change the color options nothing happens. I can see this post is about color so maybe someone can help me?

Thanks in Advance and thank you for letting us use this map!

@benstigsen
Copy link

@tijsgerwe I know this is a very late reply to your school project.
When you create the map, you need to pass in the arguments. This is how I did it for a school project:
image

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

No branches or pull requests

4 participants