Enumeration: CosmographLinkColorStrategy
Enumeration Members
| Enumeration Member | Value | Description |
|---|---|---|
Sum | "sum" | Uses the sum of numeric values between the same source and target points in linkColorBy to determine link colors and interpolates them from linkColorPalette. - Uses unknownColor for nullish values - Has effect only if linkColorBy provided and contains numeric data. |
Average | "average" | Uses the average of numeric values between the same source and target points in linkColorBy to determine link colors and interpolates them from linkColorPalette. - Uses unknownColor for nullish values - Has effect only if linkColorBy provided and contains numeric data. |
Count | "count" | Uses the count of links between the same source and target points in linkColorBy to determine link colors and interpolates them from linkColorPalette. |
Categorical | "categorical" | Uses colors from linkColorPalette for linkColorBy data without interpolation. - For numeric data: Creates equal-width buckets mapped to linkColorPalette colors - For categorical data: Assigns colors from linkColorPalette in order, cycling when unique values exceed palette length - Uses unknownColor for nullish values - Has effect only if linkColorBy provided |
Direct | "direct" | Directly uses linkColorBy column values as colors. - Applies the color if itās a valid color string (hex, rgb, named color, etc) or an array of [r, g, b, a] - If linkColorByFn exists, applies it to transform linkColorBy values into custom colors with it - Falls back to unknownColor if invalid color - If neither CosmographConfig.linkColorBy nor CosmographConfig.linkColorByFn exist, colors all links with unknownColor |
Single | "single" | Colors all links uniformly to the same color specified by linkDefaultColor. |