US County Map with Bubbles

A county map of the United States shows a comparison of measurement values across US States.

The following steps extend the work completed in State Map with Bubbles and demonstrate how to create a map visual on the dataset US County Populations [data source samples.us_counties]. This produces a map with bubble marks that correspond to the total population of each county.

Tip. Remember that to map county information, the dimension must be named county. This article demonstrates how to use the Alias setting to make the dataset field ctname conform to this requirement.
  1. Clone the US State Population - Map with Bubbles visual. The clone opens in Edit mode.
  2. Under Dimensions, select ctyname and drag it over the Geo shelf on the main part of the screen. Drop to add it to the shelf, below the State field.

    Click on the field to open the Field Properties menu, expand the Change Type option, and select the Geo Type County.
    assigning geo type to field in visual
  3. Alias the field ctyname as County; see Alias.

  4. The shelves of the visual should look like this:

    shelf setup for us county populations
  5. Click Refresh Visual.

    The map visual appears.

    US County Population Bubbles
  6. If not already selected, select the Enable pan and Zoom and Zoom to active area options, as described in Customizing Zoom.
  7. [Optional] Under Dimensions, select stname and add it to the Filters shelf. When the Filter for stname window modal appears, select California in the Values tab, and click Apply.

  8. Again, click Refresh Visual.

    Note that the map automatically zooms in to show detail of California.

    County Population Map with Bubbles, California
  9. Click (pencil icon) next to the title of the visualization to edit it, and enter the new name.

  10. Change the title to US County Population - Bubbles.
  11. At the top left corner of the Visual Designer, click Save.

    clicking to save