6. ORDERING
1. Normalize categories.
2. Create a simple table like this one:
3. JOIN the original dataset with this new table,
using the category column as foreign key.
4. ORDER the table by category column setting
ASC in order to show the categories with less
rows first.
category order
telefonica 1
vodafone 2
orange 3
yoigo 4
other 5
7. STYLING
You can change marker opacity
to change the visual prominence
of a category
Markers on top can be more
transparent than the ones at the
bottom
12. STACKING CHIPS
1. PostGIS:
● GROUP BY the_geom
● ORDER BY y-axis
● Generate p value
2. CartoCSS (or Javascript):
● Translate
● Offset based on zoom
level
14. JSON on SQL
and loops on popups
AGGREGATING
POINTS
1. Aggregate one field:
● json_agg()
2. Aggregate several fields:
● json_agg(row_to_json())