AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.palettes.DistinctColors Improve this Doc

Extends: anychart.core.Base

Color palette class.

Methods Overview

Specific settings
itemAt()Color by index.
items()Palette colors list.

Methods Description

itemAt

Getter for color palette colors from list by index.

Params:

NameTypeDescription
indexnumberIndex to get color.

Returns:

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

Params:

NameTypeDescription
indexnumberIndex to set color.
coloranychart.graphics.vector.FillColor to set by passed index.

Returns:

anychart.palettes.DistinctColors - Self instance for method chaining.

items

Getter for color palette colors list.

Returns:

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

Params:

NameTypeDescription
colorArray.<anychart.graphics.vector.Fill> | anychart.graphics.vector.FillColor palette colors list to set.
var_argsanychart.graphics.vector.FillAnother colors.

Returns:

anychart.palettes.DistinctColors - Self instance for method chaining.