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.
Detailed description
This method appends the zoom controller and assigns specific class to the passed DIV.
To use this method you should set a target (through the anychart.ui.Zoom#target method).
Params:
Name | Type | Description |
---|---|---|
element | Element | DOM element. |
Try it:
dispose
Disposes zoom controller.
Removes it from parent layer, nulls links, removes from DOM.
Removes it from parent layer, nulls links, removes from DOM.
Try it:
render
Renders the zoom controller.
Detailed description
This method renders the zoom controller in the passed element or supported chart. Creates its own DIV Element and appends the zoom controller there.
When you pass a one of supported chart to this method, the target is set automatically, but if you don't pass DIV Element, you should set the chart as the target (through the anychart.ui.Zoom#target method). Also, you can use this method without a parameter.
When you pass a one of supported chart to this method, the target is set automatically, but if you don't pass DIV Element, you should set the chart as the target (through the anychart.ui.Zoom#target method). Also, you can use this method without a parameter.
Params:
Name | Type | Description |
---|---|---|
parentElement | anychart.charts.Map | anychart.charts.Graph | anychart.charts.Timeline | Element | Parent element or supported chart to render the range selector into. |
Try it:
target
Set Map chart for zoom controller.
Params:
Name | Type | Description |
---|---|---|
chart | anychart.charts.Map | anychart.charts.Graph | anychart.charts.Timeline | Map chart. |
Try it: