Latitude and Longitude Map with Bubbles

A geographic coordinate map of the United States, based on degrees of latitude and longitude, 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 air-quality-over-time.csv.
  2. Import this data into Arcadia Enterprise.
  3. Create dataset Air Quality US Cities; see Creating Datasets.

The following steps demonstrate how to plot the yearly Air Quality Index data for select US cities. It uses a custom dataset Air Quality US Cities [data source samples.air_quality_over_time], and produces a map with bubble marks that correspond to the relative size of the measurement at each latitude and longitude pair.

  1. Start a new visual based on dataset Air Quality US Cities [data source samples.air_quality_over_time]; 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 only mandatory shelf for map visuals is Geo.

    shelves of map visual type
  4. Populate the shelves from the available fields (Dimensions, Measures, and so on) in the Data menu.

    • Under Dimensions, select latitude and drag it over the Geo shelf on the main part of the screen. Drop to add it to the shelf.
    • Under Dimensions, select longitude and drag it over the Geo shelf on the main part of the screen. Drop to add it to the shelf.
    • Under Measures, select days_aqi_over_100 and drag it over the Measures shelf on the main part of the screen. Drop to add it to the shelf.
  5. Under Dimensions, select year and drag it over the Filters shelf on the main part of the screen.
  6. On the Filters shelf, click the icon (down arrow) on the year field, and select Pick values from list.
  7. In the Pick values for year modal window, select 2000 and click Save.

  8. Change the size of the bubbles to the range 1-30, as described in Changing the Mark Size Range.
  9. [Optional] To improve information that appears in the Tooltips text, do the following:

    • From Dimensions, add the field metropolitan_statistical_area to the Filters shelf, and alias the field as City.
    • Alias the field on the Measures shelf as Days with AQI > 100.
    • Alias the fields on the Geo shelf as Latitude and Longitude.
    • For Latitude and Latitude fields, click the icon (down arrow), select Display Format, and enter .2f.
  10. Click Refresh Visual.

    The map visual appears.

  11. Click (pencil icon) next to the title of the visualization to edit it, and enter the new name.

  12. Change the title to US Air Quality by Latitude and Longitude.
  13. At the top left corner of the Visual Designer, click Save.