Interface: CosmographTypeColorLegendConfigInterface
Extended by
Properties
useLinksData?
optionaluseLinksData:boolean
Whether to use the data from the links instead of the points for the type legend.
Default
false
selectOnClick?
optionalselectOnClick:boolean
Whether to select the points/links with the corresponding values when clicking on the legend items.
Default
true
overrideItems?
optionaloverrideItems:TypeColorLegendItem[]
An optional array of TypeColorLegendItem objects that will override the default legend items.
sortBy?
optionalsortBy:string
The field to sort the legend items by. Should be from the same table. If not provided, the items will not be sorted.
sortOrder?
optionalsortOrder:"desc"|"asc"
The order to sort the legend items in. Can be either âascâ for ascending order or âdescâ for descending order. If not provided, the items will not be sorted.
hideUnknown?
optionalhideUnknown:boolean
Whether to hide legend items for unknown values.
Default
true
resetSelectionOnCollapse?
optionalresetSelectionOnCollapse:boolean
When the legend collapses (âshow lessâ is clicked), determines whether to deselect an item if it was selected from the expanded list but is now hidden.
Remarks
Has no effect if selectOnClick is false.
Default
true
preserveSelectionOnUnmount?
optionalpreserveSelectionOnUnmount:boolean
Preserves the selection on unmount.
Default
falseshowLabel?
optionalshowLabel:boolean
Controls the visibility of the legend itemsâ labels.
Default
false
labelResolver?
optionallabelResolver:string| (accessor?) =>string
The label for the legend. Can be a string or a function that returns a string based on an accessor.