Open makella opened 8 years ago
Let's revisit this, please. Jenks and Head&Tails method are not so reliable. And we lack log methods used as default in scientific studies.
There's already a PR with Log
and StdDev
methods already there
https://github.com/CartoDB/cartodb-postgresql/pull/236
+1 @AbelVM
It would be really great to be able to add manual classification breaks in Turbo Carto. It's common to have a data set that you want to group by percent change (e.g. 10%, 20%, 30%, 40%, and >50% change). People know their data the best and should have the ability to customize the breakpoints at which their data is categorized.
This can be done with CartoCSS but it would be good to see it in TurboCarto, especially since the CartoCSS markup is not readily available in Carto Builder.
@maxhartshorn
You have access to CartoCSS from Builder using the style console indeed
Once there, according to TurboCarto docs, to apply arbitrary breaks, you can use code like:
marker-fill: ramp([my_field], ("#009392","#91b8aa","#f1eac8","#dfa0a0","#d0587e"), (-534, -121, 0, 0.5, 292),"<=");
Thanks @AbelVM I missed that in the docs!
@AbelVM I have used CartoCSS in Builder to create manual breaks, which is useful when I need to use the same break points to compare datasets with different min/max values. However, the legend does not reflect the manual break points. Do I need to build a custom legend with HTML/CSS to show the custom values? Or is there some trick to getting the legend to work?
As long as manual breaks are static and not managed by TurboCARTO, you need to edit the legend HTML to reflect your breaks
@rochoa @javisantana
Are we planning on introducing additional classification methods to Turbo Carto and fixing the ones that currently aren't behaving as expected?
Below I outline the biggest issues I see with our current classification methods and provide some possible fixes.
I'm not sure if you guys are already thinking about these things but I think they are important and would really love to hear what you guys think about my suggestions.
Mostly, I feel like if we are going to be smart about assigning colors to data distributions, we should be equally smart about suggesting the right classification method. I think the classification method is more important than the color ramp.
The biggest issues I see:
My recommendations:
Jenks
Skewed Distributions
and / or
source: http://www.colorado.edu/geography/gcraft/notes/cartocom/section6.html
Near Normal Distribution
Manual Classification
Global Variables
polygon-fill
,marker-fill
,line-color
variable to aNO DATA
color as opposed to the lowest value's colorcc: @saleiva @andrewxhill