AnyChart
API Reference
Still have questions?
Contact support
Top

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.
Setter for the data area background.

Params:

NameTypeDescription
settingsstring | Object | null | booleanData 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.
Setter for the element enabled state.

Params:

NameTypeDefaultDescription
enabledboolean
true
Enabled state to set.

Returns:

anychart.core.ui.DataArea - Self instance for method chaining.
Example.
if (!element.enabled())
   element.enabled(true);

zIndex

Getter for the Z-index of the element.

Returns:

number - Z-index.
Setter for the Z-index of the element.

Params:

NameTypeDefaultDescription
zIndexnumber
0
Value to set.

Returns:

anychart.core.ui.DataArea - Self instance for method chaining.