-
Notifications
You must be signed in to change notification settings - Fork 44
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
Comments
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. |
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! |
@tijsgerwe I know this is a very late reply to your school project. |
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.
The text was updated successfully, but these errors were encountered: