Maps
Examples
Full State Names
<USMap data="{map_data}" state="state_name" value="sales_usd" />

State Abbreviations
<USMap data="{map_data}" state="state_abbrev" value="sales_usd" abbreviations="true" />

Color Scales
colorScale=blue

colorScale=green

colorScale=red

colorScale=bluegreen

Links
<USMap
data="{state_current}"
state="state"
value="value"
abbreviations="true"
link="state_link"
title="Sales by State"
subtitle="{most_recent_month[0].month}"
/>

USMap
All Options
Name | Description | Required? | Options | Default |
---|---|---|---|---|
data | Query name, wrapped in curly braces | Yes | query name | - |
state | Column to be used as the name for each state | Yes | column name | - |
value | Column to be used as the value determining the colour of each state | Yes | column name | - |
abbreviations | If true, map will look for two letter abbreviations rather than full names | - | false | true | false |
colorScale | Colour scale to be used | - | blue | green | red | bluegreen | blue |
min | Minimum value for the colour scale. Anything below the minimum will be shown in the same colour as the min value | - | number | - |
max | Maximum value for the colour scale. Anything above the maximum will be shown in the same colour as the max value | - | number | - |
title | Title appearing above the map. Is included when you click to save the map image | - | string | - |
subtitle | Subtitle appearing just above the map. Is included when you click to save the map image | - | string | - |
link | Column containing links. When supplied, allows you to click each state on the map and navigate to the link | - | column name | - |
fmt | Format to use for values (see available formats) | Excel-style format | built-in format | custom format | - |