Open makella opened 7 years ago
Or the spin syntax is more inline with current implementation if it was like this:
marker-fill: ramp([attribute],spin(#ff0000,5),category(20));
What would happen here is that the starting color would be #ff0000
and we would generate another color in 5 degree increments around the color wheel for 20
categories.
This could be tricky, for distinguishable colors, but I think it would be really neat to try!
here are a couple of examples with longhand CartoCSS:
for colors that are more similar, using smaller spins:
using larger spin intervals for colors that are less similar:
Totally agree. But on the other hand, it is going to be a conflict when generating legends.
As we all know, there are times when people want to symbolize more than 10 or 11 categories on their maps.
Here are a few ideas for how we might be able to make this happen:
One CARTOColor palette to support a wider range of colors
CartoCSS Spin
spin
function. If we could use color functions inside of TurboCARTO we could allow a user to use something likespin
.marker-fill: ramp([attribute],(#ff0000),spin(0,360),category(20));
Ideally, what would happen here is that we would use the starting color#ff0000
and take the entire spectrum of the color wheel0,360
and make20
stops.marker-fill: ramp([attribute],spin(30,120),category(20));
Implement existing online tools
Other ideas??
cc @saleiva