zoom

Sets the zoom level for a Map Chart that uses a default or Mapbox background. If the value is an integer, this is equivalent to the number of times the ‘Zoom In’ button zoom in is pressed on the map.

This property does not apply to maps that use a Google Map background. Use the zoomLevel property instead.

Type

For default map background

Non-negative number. There is no upper limit on zoom.

For Mapbox background

A value between 0 and 22. See the Mapbox Documentation for more details about zoom levels.

Example

Chart1.zoom = 5.0;

zoom

Either syntax below can be used in component script:

zoom          // unqualified
Chart1.zoom   // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.