Top
You are looking at an outdated 7.2.0 version of this document. Switch to the 7.14.3 version to see the up to date information.

class anychart.utils.DistinctColorPalette Improve this Doc

Extends: anychart.Base

Color palette class.

Try it:

Methods Overview

Miscellaneous
colorAt()Getter for color palette colors from list by index.
colors()Getter for color palette colors list.

Methods Description

colorAt

Getter for color palette colors from list by index.

Params:

Name Type Description
index number Index to set or get color.

Returns:

anychart.graphics.vector.Fill anychart.utils.DistinctColorPalette - Color palette colors by index.
Setter for color palette colors from list by index.

Params:

Name Type Description
index number Index to set or get color.
color anychart.graphics.vector.Fill Color to set by passed index.

Returns:

anychart.utils.DistinctColorPalette - An instance of the anychart.utils.DistinctColorPalette class for method chaining.

Try it:

colors

Getter for color palette colors list.

Returns:

Array.<anychart.graphics.vector.Fill> - Color palette colors list.
Setter for color palette colors list.

Params:

Name Type Description
value Array.<anychart.graphics.vector.Fill> Color palette colors list to set.

Returns:

anychart.utils.DistinctColorPalette - An instance of the anychart.utils.DistinctColorPalette class for method chaining.

Try it: