AnyChart
API Reference
Still have questions?
Contact support
Top

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

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

Setter for the data.

Params:

NameTypeDescription
dataanychart.data.Tree | anychart.data.TreeView | Array.<Object>Data tree or raw data.
fillMethodanychart.enums.TreeFillingMethod | stringFill method.

Returns:

anychart.charts.CirclePacking - Self instance for method chaining.

hovered

Getter for hovered state settings.

Returns:

anychart.core.StateSettings - Hovered state settings
Setter for hovered state settings.

Params:

NameTypeDescription
settingsObjectState settings to set.

Returns:

anychart.charts.CirclePacking - Self instance for method chaining.

normal

Getter for normal state settings.

Returns:

anychart.core.StateSettings - Normal state settings.
Setter for normal state settings.

Params:

NameTypeDescription
settingsObjectState settings to set.

Returns:

anychart.charts.CirclePacking - Self instance for method chaining.

palette

Getter for the chart palette.
Setter for the chart palette. Note: You can use predefined palettes from anychart.palettes.

Params:

NameTypeDescription
settingsanychart.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 settings
Setter for selected state settings.

Params:

NameTypeDescription
settingsObjectState settings to set from anychart.core.StateSettings.

Returns:

anychart.charts.CirclePacking - Self instance for method chaining.

tooltip

Getter for tooltip settings.

Returns:

anychart.core.ui.Tooltip - Tooltip instance.
Setter for tooltip settings.

Params:

NameTypeDefaultDescription
settingsObject | boolean | null
true
Tooltip settings.

Returns:

anychart.charts.CirclePacking - Self instance for method chaining.