Friday, 5 February 2016

carto - CartoDB choropleth + bubble visualization with two independent value ranges in legend


I have been trying to display two values simultaneously i.e. one absolute value displayed by bubble size (as with layer wizard: bubble) and one relative value displayed by color (as with layer wizard: chloropleth). (Adding to longitude and latitude these are four dimensions I want to visualize.)


See http://visage.co/data-visualization-101-bubble-charts/ for examples of bubble maps.



I have now managed to combine the CSS for a bubble layer (marker-width) and the CSS for a chloropleth layer (marker-fill). However I fail to adjust the legend to indicate both dimensions.


choropleth + bubble visualization


Is there a way to do this with CartoDB?


The thumbnail for Torque Cat in the Map layer wizward shows bubbles unequal in size and color, but I don't see how this could serve my purpose.



Answer



Something that I use often is to add a gradient background to the bubble circles in the legend:





  • 1.46






  • 18.5





You get something like:


legend


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...