class anychart.core.ui.DataArea Improve this Doc
Extends: anychart.core.VisualBase
DataArea class.
Methods Overview
Coloring | |
background() | Background settings. |
Interactivity | |
enabled() | Element state (enabled or disabled). |
Size and Position | |
zIndex() | Z-index of the element. |
Methods Description
background
Getter for the data area background.
Returns:
anychart.core.ui.Background - Data area background settings.Try it:
Setter for the data area background.
Detailed description
Sets data area background settings depending on parameter type:
- null/boolean - disable or enable data area background.
- object - sets data area background settings.
- string - sets color for the data area background.
Params:
Name | Type | Description |
---|---|---|
settings | string | Object | null | boolean | Data area background to set. |
Returns:
anychart.core.ui.DataArea - Self instance for method chaining.enabled
Getter for the element state (enabled or disabled).
Returns:
boolean - Element state.Try it:
Setter for the element enabled state.
Params:
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | true | Enabled state to set. |
Returns:
anychart.core.ui.DataArea - Self instance for method chaining. Example.
if (!element.enabled()) element.enabled(true);
Try it:
zIndex
Setter for the Z-index of the element.
Detailed description
The bigger the index - the higher the element position is.
Params:
Name | Type | Default | Description |
---|---|---|---|
zIndex | number | 0 | Value to set. |
Returns:
anychart.core.ui.DataArea - Self instance for method chaining.Try it: