Top
You are looking at an outdated 7.1.1 version of this document. Switch to the 7.14.3 version to see the up to date information.

class anychart.VisualBase Improve this Doc

Extends: anychart.Base

Base class for all elements.

Methods Overview

Miscellaneous
container()Getter for the element current container.
enabled()Getter for the current element state (enabled or disabled).
zIndex()Getter for the current Z-index of the element.

Methods Description

container

Getter for the element current container.

Returns:

anychart.graphics.vector.ILayer - The current container.
Setter for the element container.
Each element appends all its content to this container.
The order of adding is not defined, but usually it will be the order in which elements are drawn for the first time. If you need to specify the order use anychart.VisualBase#zIndex.

Params:

Name Type Description
value anychart.graphics.vector.ILayer | string | Element The value to set.

Returns:

anychart.VisualBase - An instance of anychart.VisualBase class for method chaining.

enabled

Getter for the current element state (enabled or disabled).

Returns:

boolean - The current element state.
Setter for the element enabled state.

Params:

Name Type Description
value boolean Value to set.

Returns:

anychart.VisualBase - An instance of anychart.VisualBase class for method chaining.

zIndex

Getter for the current Z-index of the element.

Returns:

number - The current zIndex.
Setter for the Z-index of the element.

Params:

Name Type Description
value number Value to set.

Returns:

anychart.VisualBase - An instance of anychart.VisualBase class for method chaining.