Example: Adding regions and points to a map
Before you begin
About this task
This procedure shows you how to create a map that shows revenue by country and quantity as points. To see how to add latitude and longitude data to a map, see Example: Adding latitude and longitude data to a map.
Create the map and add a regions layer that shows revenue by country.
- Click New and then click Report.
- In the Templates and themes window, click Blank and then click OK.
- On the canvas, click the Pinned icon , and then click Visualization.
- In the Visualization gallery, click Map, and then click OK.
- In the navigation pane, click Select sources or the Add a source icon , select and click Open.
- Make sure that Regions displays in the data slot pane. If it doesn't, click the down arrow and select it.
- Expand Sample File Go Sales Xls and drag Retailer country to the Locations data slot.
- Drag Revenue to the Location color data slot.
- In the Properties pane, under REGIONS, set Transparency to 10.
- Optionally, under COLOR PALETTE, set a color palette for the Regions property.
- Select Page preview to run the report. Note: You can also click to run the report.The map is populated.Tip: Zoom in and zoom out of the map to see more or less detail. Click and drag to move around the map.
Notice that the Visible layers icon displays on the map. When you click it, Regions is selected, which means that region data is displayed on the map. You can hide the region data by clearing the Regions check box.
- Select Page design to return to page design mode. If you ran the report from Run options, close the tab, which returns you to page design mode.
Now add quantity as a points layer on the map.
- In the data slot pane, click the down arrow and select Points.
- Drag Retailer country to the Locations data slot.
- Drag Quantity to the Point size data slot.
- Make sure that the visualization is selected on the canvas, and in the Properties pane, under POINTS, in the Type field, select Heat.
- You can set a color palette and transparency for the points layer, like you did for the regions layer.
- Select Page preview to run the report. The map refreshes with the new points data. Now, when you click the Visible layers icon, the Points check box displays, along with the Regions check box. You can clear one or both to show or hide the data. Also, the points data appear as heat points on the map.
- Save the report when you're done.