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

Logarithmic scale #292

Open
muazamkamal opened this issue Mar 1, 2022 · 0 comments
Open

Logarithmic scale #292

muazamkamal opened this issue Mar 1, 2022 · 0 comments

Comments

@muazamkamal
Copy link

Creating a logarithmic scale seems to be giving the same scale as default. I created the log color scale by following the example from the README.

chroma.scale(['lightyellow', 'navy']).domain([1, 100000], 7, 'log');

Viewing the colors it generates seems to be no difference to normal scale. Refer to this codepen.
image

Attempting to pass a wide-range value for the scale to map also shows no difference to normal scale. Refer to this stackblitz.
image

How is the log option supposed to be used and what exactly does it do?

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

1 participant