US State Map with Bubbles

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.

Tip. Remember that to map state information, the dimension must be named state. This article demonstrates how to use the Alias setting to make the dataset field stname conform to this requirement.
  1. Start a new visual based on dataset US County Population [data source samples.us_counties]; see Creating Visuals.
  2. In the visuals menu, find and click map, the sixth choice on the third row.

  3. Note that the shelves of the visual changed. They are now X, Y, Geo, Measures, Tooltips, and Filters.

    The mandatory shelves for map visuals are Geo and Measures.

  4. Populate the shelves from the available fields (Dimensions, Measures, and so on) listed in the left navigation menu.

    • Under Dimensions, select stname and drag it over the Geo shelf on the main part of the screen. Drop to add it to the shelf.
    • Under Measures, select tot_pop and drag it over the Measures shelf on the main part of the screen. Drop to add it to the shelf.
  5. If you click Refresh Visual at this time, it generates an error.
  6. Alias the field stname as state, and sum(tot_pop) as population, and click Refresh Visual.

    The map visual appears.

  7. For population, click the icon (down arrow), select Display Format, and enter , (comma).
  8. [Optional] Enable panning and zooming option, as described in Customizing Zoom.
  9. [Optional] Change the color palette, as described in Change Color Palette.
  10. Change the map from choropleth to bubble marks, as described in Marks as Bubbles.
  11. Click Refresh Visual.

    The map visual appears. You can move the visual (pan), zoom in and out, and see the details in the Tooltips text.

    Notice that the bubbles are very large, and it is sometimes difficult to see which bubble represents each state, particularly along the Atlantic Coast.

  12. Change the size of the bubbles to the range 10-35, as described in Mark Size Range.
  13. Click Refresh Visual.

    Notice that the relative size of bubbles is smaller, and there is less overlap.

  14. Click Edit next to the title of the visualization.

  15. Change the title to US State Population - Choropleth Map.
  16. Above the left navigation bar, click Save.