class anychart.charts.CirclePacking Improve this Doc
Extends: anychart.core.SeparateChart
Circle Packing chart class.
Note: Use anychart#circlePacking method to get an instance of this class.
Learn more about Circle Packing Chart
Methods Overview
Specific settings | |
labelsMode() | Drawing modes. |
Chart Coloring | |
palette() | Palette settings. |
Data | |
data() | Data settings. |
Interactivity | |
hovered() | Hovered state settings. |
normal() | Normal state settings. |
tooltip() | Tooltip settings. |
States | |
selected() | Selected state settings. |
Methods Description
data
Getter for the data.
Try it:
Setter for the data.
Params:
Name | Type | Description |
---|---|---|
data | anychart.data.Tree | anychart.data.TreeView | Array.<Object> | Data tree or raw data. |
fillMethod | anychart.enums.TreeFillingMethod | string | Fill method. |
Returns:
anychart.charts.CirclePacking - 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.charts.CirclePacking - Self instance for method chaining.Try it:
labelsMode
Getter for the circle packing chart labels drawing mode.
Returns:
anychart.enums.CirclePackingLabelsMode | string - Labels mode. See listing
var chart = anychart.circlePacking(data); var labelsMode = chart.labelsMode();
Setter for the circle packing chart labels drawing mode.
The labelsMode() method allows to change which labels are shown on the chart.
Sets whether it should be root labels or leaves labels.
Learn more about permitted values at anychart.enums.CirclePackingLabelsMode
Params:
Name | Type | Default | Description |
---|---|---|---|
mode | anychart.enums.CirclePackingLabelsMode | string | 'roots' | Mode to set. |
Returns:
anychart.charts.CirclePacking - Self instance for method chaining.Try it:
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.charts.CirclePacking - Self instance for method chaining.Try it:
palette
Getter for the chart palette.
Setter for the chart palette.
Note: You can use predefined palettes from anychart.palettes.
Params:
Name | Type | Description |
---|---|---|
settings | anychart.palettes.RangeColors | anychart.palettes.DistinctColors | Object | Array.<string> | Color palette instance. |
Returns:
anychart.charts.CirclePacking - Self instance for method chaining.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 from anychart.core.StateSettings. |
Returns:
anychart.charts.CirclePacking - Self instance for method chaining.Try it:
tooltip
Setter for tooltip settings.
Detailed description
Sets chart data tooltip settings depending on parameter type:
- null/boolean - disable or enable chart data tooltip.
- object - sets chart data tooltip settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
settings | Object | boolean | null | true | Tooltip settings. |
Returns:
anychart.charts.CirclePacking - Self instance for method chaining.Try it: