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.

Try it:

Setter 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
value boolean
true
Value to set.

Returns:

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

Try it:

zIndex

Getter for the Z-index of the element.

Returns:

number - Z-index.

Try it:

Setter for the Z-index of the element.

Params:

Name Type Default Description
value number
0
Value to set.

Returns:

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

Try it: