Touch UI / Charts

  Map Chart

Table of Contents
Touch UI / ChartsPrint||
Map Chart

The “map” chart type displays a map using the Google Maps API. It accepts values in the form of addresses and renders them as pins on the map. This chart type can be useful for displaying values associated with regions or locations. However, it may be more beneficial to use Maps presentation style to allow for data interaction or Geo Chart Type instead.

The map below shows the location of customers by country.

Data Field Tag
Country pivot1-row1-map

A simple map chart that shows the location of customers by country.

The data for the map is displayed below.

The data for the count of customers by Country.

Clicking on a data point will reveal the value.

Clicking on a data point in the map will reveal the value.

The type of map can be specified with the “maptype” property. The default value is “hybrid”. The other options are “normal”, “terrain”, or “satellite”. The example below shows the “terrain” map type.

Data Field Tag
Country pivot1-row1-map pivot1-maptype:"terrain"

A map chart using map type of 'terrain'.

The switcher for map type is disabled by default. The switcher can be enabled by adding the “usemaptypecontrol” keyword. It will appear in the top-right corner.

Data Field Tag
Country pivot1-row1-map pivot1-usemaptypecontrol

The map type switcher has been enabled in the top-right corner.

By default, the user cannot use the scroll wheel to zoom. This functionality can be enabled by adding the “enablescrollwheel” keyword.

Data Field Tag
Country pivot1-row1-map pivot1-enablescrollwheel