Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Make map scale nice and rounded #361

Closed
noahmanger opened this issue Jul 23, 2015 · 4 comments
Closed

Make map scale nice and rounded #361

noahmanger opened this issue Jul 23, 2015 · 4 comments

Comments

@noahmanger
Copy link
Contributor

Can we round the max on the map up to the nearest power of 10 (or something)? Right now, the scale gets a bunch of seemingly awkward numbers because the max isn't rounded.
screenshot-01

So in this case, maybe the actual max of 184.2k is rounded up to 200k with intervals at 40k, 80k, 120k, 160k, 200k. Make sense?

@noahmanger
Copy link
Contributor Author

Possibly useful for legend-making: http://d3-legend.susielu.com/

@noahmanger
Copy link
Contributor Author

Also this is another idea @shawnbot shared that could be useful for the scale: http://bl.ocks.org/tmcw/4969184

@shawnbot
Copy link
Contributor

If you're using a linear scale you can also use scale.nice() to round the max up to a "nice" value.

@leahbannon
Copy link

Addressed in #445

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

No branches or pull requests

4 participants