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:
Name | Type | Description |
---|---|---|
index | number | Index to get color. |
Returns:
anychart.graphics.vector.Fill - Color palette colors by index.Try it:
Setter for color palette colors from list by index.
Params:
Name | Type | Description |
---|---|---|
index | number | Index to set color. |
color | anychart.graphics.vector.Fill | Color to set by passed index. |
Returns:
anychart.palettes.DistinctColors - Self instance for method chaining.Try it:
items
Getter for color palette colors list.
Returns:
Array.<anychart.graphics.vector.Fill> - Color palette colors list.Try it:
Setter for color palette colors list.
Params:
Name | Type | Description |
---|---|---|
color | Array.<anychart.graphics.vector.Fill> | anychart.graphics.vector.Fill | Color palette colors list to set. |
var_args | anychart.graphics.vector.Fill | Another colors. |
Returns:
anychart.palettes.DistinctColors - Self instance for method chaining.