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:

NameTypeDescription
elementElementDOM element.

dispose

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

render

Renders the zoom controller.

Params:

NameTypeDescription
parentElementanychart.charts.Map | ElementParent element or map chart to render the range selector into.

target

Set Map chart for zoom controller.

Params:

NameTypeDescription
chartanychart.charts.MapMap chart.