class anychart.core.sunburst.Level Improve this Doc
Extends: anychart.core.Base
Sunburst level settings.
Methods Overview
Specific settings | |
enabled() | Disable or enable level. |
Labels | |
labels() | Labels settings. |
Size and Position | |
thickness() | Thickness settings. |
States | |
hovered() | Hovered state settings. |
normal() | Normal state settings. |
selected() | Selected state settings. |
Methods Description
enabled
Getter for the enabled state.
Returns:
boolean - Enabled state. See listing
var level = chart.level(1); var enabled = level.enabled();
Setter for the enabled state.
Params:
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | null | true | Whether to enable level. |
Returns:
anychart.core.sunburst.Level - Self instance for method chaining.Try it:
hovered
Getter for hovered state settings.
Returns:
anychart.core.StateSettings - Hovered state settingsTry it:
Setter for hovered state settings.
Params:
Name | Type | Description |
---|---|---|
settings | Object | State settings to set. |
Returns:
anychart.core.sunburst.Level - Self instance for method chaining.Try it:
labels
Setter for the labels settings.
Detailed description
Sets chart labels settings depending on parameter type:
- null/boolean - disable or enable chart labels.
- object - sets chart labels settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
settings | Object | boolean | null | true | Chart data labels settings. |
Returns:
anychart.core.sunburst.Level - Self instance for method chaining.normal
Getter for normal state settings.
Returns:
anychart.core.StateSettings - Normal state settings.Try it:
Setter for normal state settings.
Params:
Name | Type | Description |
---|---|---|
settings | Object | State settings to set. |
Returns:
anychart.core.sunburst.Level - Self instance for method chaining.Try it:
selected
Getter for selected state settings.
Returns:
anychart.core.StateSettings - Selected state settingsTry it:
Setter for selected state settings.
Params:
Name | Type | Description |
---|---|---|
settings | Object | State settings to set. |
Returns:
anychart.core.sunburst.Level - Self instance for method chaining.Try it:
thickness
Getter for the level thickness.
Returns:
string | number - The level thickness. See listing
var level = chart.level(1); var thickness = level.thickness();
Setter for the level thickness.
Params:
Name | Type | Description |
---|---|---|
thickness | string | number | Thickness to set. |
Returns:
anychart.core.sunburst.Level - Self instance for method chaining.Try it: