ColumnColorHelper
Constructors
new ColumnColorHelper()
new ColumnColorHelper(
column
):ColumnColorHelper
Parameters
Parameter | Type |
---|---|
column | Column <any > |
Returns
Source
Properties
Property | Modifier | Type |
---|---|---|
column | private | Column <any > |
Methods
getColor()
getColor(
i
):number
Parameters
Parameter | Type |
---|---|
i | number |
Returns
number
Source
getColors()
getColors():
Uint32Array
Returns
Uint32Array
Source
getType()
getType():
"Categorical"
|"Conditional"
|"Linear"
|"Off"
Returns
"Categorical"
| "Conditional"
| "Linear"
| "Off"
Source
setCategorical()
setCategorical(
colorMap
,options
):void
Parameters
Parameter | Type | Default value |
---|---|---|
colorMap | null | object | null |
options | null | object | null |
Returns
void
Source
setConditional()
setConditional(
rules
):void
Parameters
Parameter | Type | Default value |
---|---|---|
rules | null | object | null |
Returns
void
Source
setDisabled()
setDisabled():
void
Returns
void
Source
setLinear()
setLinear(
range
,options
):void
Enables linear color-coding on a column.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
range | null | number [] | null | list of palette colors (ARGB integers; see Color). |
options | null | object | null | list of additional parameters, such as the minimum/maximum value to be used for scaling. Use the same numeric representation as [Column.min] and [Column.max]. |
Returns
void