AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.ui.Zoom Improve this Doc

The Zoom class contains methods for configuring zoom ui element.

Methods Overview

Specific settings
decorate()Adds a Zoom Controller to a specified DOM container.
render()Renders the zoom controller.
target()Set Map chart for zoom controller.
Miscellaneous
dispose()Disposes zoom controller.

Methods Description

decorate

Adds a Zoom Controller to a specified DOM container.

Params:

Name Type Description
value Element DOM element.

Try it:

dispose

Disposes zoom controller.
Removes it from parent layer, nulls links, removes from DOM.

Try it:

render

Renders the zoom controller.

Params:

Name Type Description
parentElement anychart.charts.Map | Element Parent element or map chart to render the range selector into.

Try it:

target

Set Map chart for zoom controller.

Params:

Name Type Description
chart anychart.charts.Map Map chart.

Try it: