Enumeration: CosmographPointColorStrategy
Enumeration Members
Enumeration Member | Value | Description |
---|---|---|
Palette | "palette" | Uses colors from pointColorPalette for pointColorBy data without interpolation. - For numeric data: Creates equal-width buckets mapped to pointColorPalette colors - For categorical data: Assigns colors from pointColorPalette in order, cycling when unique values exceed palette length |
InterpolatePalette | "interpolatePalette" | Interpolates colors from pointColorPalette over pointColorBy data. - For numeric data: Creates continuous color scale between pointColorPalette colors - For categorical data: Creates evenly-spaced color scale by interpolating between pointColorPalette colors to match the number of unique values in pointColorBy so every value is a unique color. |
Map | "map" | Uses color mapping from pointColorByMap to values in pointColorBy. - Applies exact color from pointColorByMap for matching values - Falls back to pointColor when value is not found in map or invalid |
Degree | "degree" | Colors points based on their degree (number of connections) using interpolated pointColorPalette. - Maps point degrees to continuous color scale between pointColorPalette colors - Has effect only if links provided |
Direct | "direct" | Directly uses pointColorBy 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 pointColorByFn exists, applies it to transform pointColorBy values into custom colors with it - Falls back to pointColor if invalid color - If neither pointColorBy nor pointColorByFn exist, colors all points with pointColor |