class anychart.palettes.RangeColors Improve this Doc
Extends: anychart.core.Base
Gradient palette class.
Methods Overview
Specific settings | |
count() | Colors counts. |
itemAt() | Color by index. |
items() | Colors list. |
Methods Description
count
Getter for color palette colors counts.
Returns:
number - Color palette colors count.Setter for color palette's colors counts.
Note: Defines how many steps we need in gradient.
Note: Defines how many steps we need in gradient.
Params:
Name | Type | Default | Description |
---|---|---|---|
count | number | NaN | Color palette colors counts. |
Returns:
anychart.palettes.RangeColors - Self instance for method chaining.Try it:
itemAt
Getter for color palette colors from list by index.
Params:
Name | Type | Description |
---|---|---|
index | number | Index to get color. |
Returns:
anychart.graphics.vector.SolidFill - 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.SolidFill | Color to set by passed index. |
Returns:
anychart.palettes.RangeColors - Self instance for method chaining.Try it:
items
Getter for color palette colors list.
Returns:
Array.<anychart.graphics.vector.SolidFill> - Color palette colors list.Setter for color palette colors list.
Params:
Name | Type | Description |
---|---|---|
color | Array.<(anychart.graphics.vector.SolidFill|Object)> | anychart.graphics.vector.LinearGradientFill | anychart.graphics.vector.RadialGradientFill | Array.<anychart.graphics.vector.GradientKey> | Array.<string> | anychart.graphics.vector.SolidFill | string | Color palette colors list to set. |
var_args | anychart.graphics.vector.SolidFill | string | Another colors. |
Returns:
anychart.palettes.RangeColors - Self instance for method chaining.