US Zip Code Map with Bubbles

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

Tips:
  • This article uses data that is not included with Arcadia Enterprise. Follow these steps to add it to your application.

    1. Download the datafile hud-zip-county-122010.csv.
    2. Import this data into Arcadia Enterprise.
    3. Create dataset HUD Residential/Business Ratios.
  • Remember that to map zip code information, the dimension must be named zipcode. This article demonstrates how to use the Alias setting to make the dataset field zip conform to this requirement.

The following steps demonstrate how to plot the proportion of buildings that are designated for residential use at the level of zip code, across the territory of US. It uses a custom dataset HUD Residential/Business Ratios [data source samples.hud_zip_county_122010], and produces a map with bubble marks that correspond to the relative size of the measurement for each zipcode field.

  1. Start a new visual based on dataset HUD Residential/Business Ratios [data source samples.hud_zip_county_122010]; 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 zip and drag it over the Geo shelf on the main part of the screen. Drop to add it to the shelf.
    • Under Measures, select res_ratio 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. On the shelf, on sum(res_ratio) field, click the icon (down arrow), select Aggregates, and then select Remove Aggregate.

  7. Note that the shelf now contains the modified field res_ratio.

  8. Alias the field zip as zipcode, and res_ratio as Ratio of Residential Use Properties.
  9. Under Dimensions, select zip and drag it over the Filters shelf on the main part of the screen. Drop to add it to the shelf.
  10. On the Filters shelf, click the icon (down arrow) on the zip field, and select Enter/Edit Expression.
  11. In the Enter/Edit Expression modal window,

    • Enter the range of values that represent zip codes for the state of Alaska:
      ([zip] BETWEEN 99501 AND 99950)
    • Click Validate Expression.
    • Click Save.
  12. Turn on the Enable pan and zoom and Zoom to active area options, as described in Customizing Zoom.
  13. Change the size of the bubbles to the range 1-3, as described in Mark Size Range.
  14. Click Refresh Visual.

    The map visual appears. You can adjust the size and focus of the visual to show the area of interest.

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

  16. Change the title to US Residential Address Zipcode Map.
  17. Above the left navigation bar, click Save.