Interface: CosmographRangeColorLegendConfigInterface

Extended by

Properties

useLinksData?

optional useLinksData: boolean

Whether to use the data from the links instead of the points for the size legend. Default: false


selectOnClick?

optional selectOnClick: boolean

Whether to select the points/links with the corresponding values when clicking on the legend elements. Default: true


steps?

optional steps: 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?

optional overrideColors: 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?

optional useDiscreteColors: 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?

optional useQuantiles: boolean

Whether to use quantiles to get size legend min/max.


hidden?

optional hidden: boolean

Whether to hide the legend. Default: false