US state map with bubbles
CDP Data Visualization Map visual lets you plot measurements, as bubbles, over US State regions. Bubble maps display up to two measurements simultaneously: as the color of the bubble, and as the relative size of the bubble.
A map of the United States shows a comparison of measurement values among US States.
The following steps demonstrate how to create a new map visual on the dataset
US County Population [data source
samples.us_counties]. This produces a map with bubble marks
that correspond to the total population of each state.
- Clone the visual that we developed in the article State map, choropleth; see Cloning a visual.
- [Optional] Add a measure to the Size shelf.
Here, we plan to show the relative size of the Hispanic population across the country, so we are using the following expression in the Enter/Edit Expression editor:
See Enter or edit expressions.
- Change the map from choropleth to bubble marks, as described in Displaying bubbles on maps.
- Adjust the size range of the marks to 1-10, as described in Changing the mark size range.
- [Optional] Alias all the fields; see Alias.
- [Optional] Change the color palette or simply reverse it, as described in Change color palette of visuals and Reverse color palette of visuals.
- [Optional] Enable panning and zooming option, as described in Customizing zoom.
- Click Refresh Visual.
The map visual appears.
- Click (pencil icon) next to the title of the visualization to edit it, and enter the new name.
- Change the title to
US State Population - Bubbles.
At the top left corner of the Visual Designer, click
You can move the visual (pan), zoom in and out, and see the details in the Tooltips text.