Segmenting data qualitatively in interactive maps
enables you to plot qualitative ranges of data by specifying the data segmentation on the Color shelf of an Interactive Map visual.
The following steps demonstrate how to plot incident counts on an interactive map. We are using truck movement data.
- Select the appropriate dataset, and create a new dashboard; in the dashboard, open the default visual and change the visual type to Interactive Map.
- Enable Circles, as described in Displaying circles: click the Settings menu, select Circles, and then select the Enable Circles option.
- Similarly, enable both the area and color legends of Circles by selecting the Add Circles Area Legend and Add Circles Color Legend options.
- [Optional] Disable all the other layers: heatmap, cluster, marker, and route.
Populate the shelves from the available fields (Dimensions,
Measures, and so on) in the Data menu.
On the Geo Shelf, under Measures, select
longitude, and add them to the Geo shelf.
If your longitude and latitude measurements are not automatically recognized (appear with a (globe) icon on the Geo shelf), cast them to the appropriate Geo Type. Click the filed on the shelf; in the Field Properties menu, select Change Type, and then select Latitude or Longitude, as appropriate. See Change type and Geo data type.
On the Measures Shelf, under Measures, select
eventtypeand place it on the measures shelf.
Change the aggregation function to
count(), and Alias the field as # Incidents.
On the Colors Shelf, under Measures, select
eventtype, and place it on the Colors shelf.
Click the field on the shelf, and in the Field Properties menu, select the  Enter/Edit Expression option. Change the field expression to split the data into two qualitative ranges, High and Low:
case when count([eventtype]) > 20 then 'High' else 'Low (20 or less)' end
Change the field Alias to # Lane Departures.
On the Filters Shelf, add the field
eventtypeto this shelf, and select the single value 'Lane Departures'.
[Optional] Add the field
drivernameto the filters shelf, and select a small number of drivers to see details.
- On the Geo Shelf, under Measures, select
[Optional] Change the color palette to ensure that the colors are distinct. In this
case, because we are dividing the data into two distinct groups, we choose a two-color
Click Colors, and select an appropriate palette.
Click Refresh Visual.
The visual appears.
- Change the title of the visual, and Save it.