A geographic coordinate map of the United States, based on degrees of latitude
and longitude
, shows a comparison of measurement values across US States.
Air Quality US Cities
.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.
Air Quality US Cities
[data source samples.air_quality_over_time
]; see Creating Visuals.In the visuals menu, find and click map, the sixth choice on the third row.
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.
Populate the shelves from the available fields (Dimensions, Measures, and so on) listed in the left navigation menu.
latitude
and drag it over the Geo shelf on the main part of the screen. Drop to add it to the shelf.longitude
and drag it over the Geo shelf on the main part of the screen. Drop to add it to the shelf.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.year
and drag it over the Filters shelf on the main part of the screen.year
field, and select Pick values from list. In the Pick values for year modal window, select 2000 and click Save.
1-30
, as described in Mark Size Range.[Optional] To improve information that appears in the Tooltips text, do the following:
metropolitan_statistical_area
to the Filters shelf, and alias the field as City
.Days with AQI > 100
.Latitude
and Longitude
.Latitude
and Latitude
fields, click the icon (down arrow), select Display Format, and enter .2f
.Click Refresh Visual.
The map visual appears.
Click Edit next to the title of the visualization.
US Air Quality by Latitude and Longitude
.Above the left navigation bar, click Save.