Interface: CosmographRangeColorLegendConfigInterface
Extended by
Properties
useLinksData?
optionaluseLinksData:boolean
Whether to use the data from the links instead of the points for the size legend.
Default: false
selectOnClick?
optionalselectOnClick:boolean
Whether to select the points/links with the corresponding values when clicking on the legend elements.
Default: true
steps?
optionalsteps:number
Specifies the number of color gradations in the range legend.
The CosmographRangeColorLegend divides the current accessor’s extent into this many discrete steps.
Each step corresponds to a color value derived from the current pointColorByFn or linkColorByFn.
Overridden if overrideColors is provided by overrideColors length.
Default: 10
overrideColors?
optionaloverrideColors:RangeLegendColor[]
The color scheme for the color range legend, specified as an array of colors.
The first color represents the start of the range, and the last color represents the end of the range.
Can be an array of [number, number, number, number] or string.
The colors can be specified as a 4-element array of [r, g, b, a] values (where each component is between 0 and 255),
or as a CSS color string (e.g. ‘#ff0000’ for red).
useDiscreteColors?
optionaluseDiscreteColors:boolean
When true and overrideColors is provided, displays the legend colors as discrete bands
instead of a continuous gradient. This creates clear separation between color categories.
Has no effect if overrideColors is not provided.
Default: false
useQuantiles?
optionaluseQuantiles:boolean
Whether to use quantiles to get size legend min/max.
hidden?
optionalhidden:boolean
Whether to hide the legend.
Default: false
preserveSelectionOnUnmount?
optionalpreserveSelectionOnUnmount:boolean
Preserves the selection on unmount.
Default
false