CartoDB / airship

A design library for building Location Intelligence applications.
https://carto.com/developers/airship/
BSD 3-Clause "New" or "Revised" License
75 stars 14 forks source link

Legend component: Polygon color, classed (color steps) #588

Closed jorgesancha closed 5 years ago

jorgesancha commented 5 years ago

Polygon color, classed (color steps), part of #157 :

image

Learn more here: https://docs.google.com/document/d/1fYFWV9vVRyfpDjcu30lGm7Fr5qZKoaTOaHfmqtGYfLE/edit?ts=5c9cf373

cc @makella @rjimenezda

newLadyAga commented 5 years ago

Should it have an initial and final value? I've done it as the example on #157 but it might need those values...

image

588 - Polygon color, classed (color steps)

makella commented 5 years ago

@Lady-Aga nice! can we see this with 7 class breaks? Typically, that will be the maximum (although with VL, ppl can choose as many breaks as they want). For these classed legends, I'd say the minimum would be 2 (more likely 3) and the maximum will be 7. According to CARTOColor schemes, we have sequential and diverging color schemes for: 2,3,4,5,6 and 7 classes.

makella commented 5 years ago

I should mention that [diverging color schemes]( will usually be an odd number 3,5,7...)

From our CARTOColors page: "Diverging schemes Highlight values above and below an interesting mid-point in quantitative data with these schemes. The middle color is assigned to the critical value with two sequential type palettes at either end assigned to values above or below."