timwis / leaflet-choropleth

Choropleth plugin for Leaflet (color scale based on value)
http://timwis.com/leaflet-choropleth/examples/basic
MIT License
181 stars 232 forks source link

Last number in limit is smaller than the rest using quantile #13

Open reyemtm opened 8 years ago

reyemtm commented 8 years ago
["10065", 20996.75, 24371, 28654.5, "8924"] OR
["10172", "18263", "21779", "27054", "9815"] - 9815 should be 148729 in this case

The map is drawing the right colors, its just the last limit # is wrong. Ideas?

Map

This is a chroma issue. See seblow.

timwis commented 8 years ago

Hi @reyemtm, thanks for reporting the issue. I see that you've posted it in chroma.js as well. I'm happy to help narrow it down. Would you mind posting a code sample so I can reproduce the problem?

reyemtm commented 8 years ago

The map link above should show the resulting limits in the console. The json that is being examined is not easily extracted sinc eit is a geojson jooned with a csv client-side. I will see about getting the array out of the app to set up a code sample.

reyemtm commented 8 years ago

To be clear am I right that the last number in a q scale with 5 values should be the largest number in the array?