Cartogram
Last updated
Last updated
A cartogram is a map type where the original layout of the areal unit is replaced by a geometric form (usually a circle, rectangle, or hexagon) that is proportional to the value of the variable for the location. This is in contrast to a standard choropleth map, where the size of the polygon corresponds to the area of the location in question.
jsgeoda implements a circular cartogram, in which the areal units are represented as circles, whose size (and color) is proportional to the value observed at that location. The changed shapes remove the misleading effect that the area of the unit might have on perception of magnitude. Please read: https://geodacenter.github.io/workbook/3a_mapping/lab3a.html#cartogram
Parameters:
Returns:
see: https://theuscovidatlas.org
Name
Type
Description
map_uid
String
A unique string represents the geojson map that has been read into GeoDaWasm.
values
Array
The values that the classify algorithm will be applied on.
Type
Description
Object
an array of circles, which is defined as: { "properties": { "id" : 1}, "position": [0.01, 0.01], "radius": 0.1 }