A world map can show relative measurement values for countries as colored areas.
A world map may be used to show a comparison of measurement values among countries. With data that meets ratio and statistical continuity guidelines, a choropleth map is a good chart choice.
The following steps demonstrate how to create a new map visual on the dataset World Life Expectancy
[data source samples.world_life_expectancy
]. It produces colored regions for the measurements that correspond to the country
field.
World Life Expectancy
[data source samples.world_life_expectancy
]; see Creating Visuals.In the visuals menu, find and click Map (row 5, column 1).
Note that the shelves of the visual changed. They are now Geo, Color, Size, Drill, Tooltips, X Trellis, Y Trellis, and Filters.
The only mandatory shelf for map visuals is Geo.
Populate the shelves from the available fields (Dimensions, Measures, and so on) in the Data menu.
country
and add it to the
Geo shelf.gdp_per_capita
and add it to the
Color shelf.year
and add it to the
Filters shelf. When the
Filter for year window modal appears, select 2010 in the
Values tab, and click Apply.Click Refresh Visual.
The map visual graph appears.
[Optional] On the Tooltips shelf, add several fields from Dimensions and Measures.
This enables you to see specific descriptive information in your visuals, such as input values, segment affiliation, and calculations.
For example, from Dimensions, add un_subregion
,
un_region
, and year
onto the
Tooltip shelf.
[Optional] Alias the fields on the shelves to improve the readability of the visual and its tooltip. See Alias.
gdp_per_capita
as GDP per Capita
un_subregion
as UN Subregion
un_region
as UN Region
year
as Year
GDP per Capita
field to
include a thousands separator, and format Year
not to use the thousands
separator. See Real Number Display Format and
Integer Display Format.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.
Click (pencil icon) next to the title of the visualization to edit it, and enter the new name.
World Population - Choropleth Map
.At the top left corner of the Visual Designer, click Save.