class anychart.ui.Zoom Improve this Doc
Zoom ui element (for zoomable chart).
Methods Overview
Specific settings | |
decorate() | Decorates the container for the zoom controller. |
render() | Renders the zoom controller. |
target() | Set Map chart for zoom controller. |
Miscellaneous | |
dispose() | Disposes zoom controller. |
Methods Description
decorate
Decorates the container for the zoom controller.
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 |
---|---|---|
value | Element | Element to decorate. |
Try it:
dispose
Disposes zoom controller.
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 map. Creates its own DIV Element and appends the zoom controller there.
When you pass a map 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 parameter.
When you pass a map 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 parameter.
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: