Interface: CosmographSizeLegendConfig
Extends
CosmographSizeLegendConfigInterface.Omit<SizeLegendConfigInterface,"extent"|"sizeMultiplier"|"form">
Properties
useLinksData?
optionaluseLinksData:boolean
Whether to use the data from the links instead of the points for the size legend.
Default: false
Inherited from
CosmographSizeLegendConfigInterface.useLinksData
hideWhenSizeMoreThan?
optionalhideWhenSizeMoreThan:number
The maximum size of points/links to show in the size legend. Points/links with a size greater than this value will cause the legend to hide.
Inherited from
CosmographSizeLegendConfigInterface.hideWhenSizeMoreThan
selectOnClick?
optionalselectOnClick:boolean
Whether to select the points/links with the corresponding values when clicking on the legend elements.
Default: true
Inherited from
CosmographSizeLegendConfigInterface.selectOnClick
overrideExtent?
optionaloverrideExtent: [number,number]
The custom extent to use for the size legend, specified as a tuple of [min, max] values. If not provided, the legend will automatically determine the extent based on the data.
Inherited from
CosmographSizeLegendConfigInterface.overrideExtent
useQuantiles?
optionaluseQuantiles:boolean
Whether to use quantiles to get size legend min/max.
Inherited from
CosmographSizeLegendConfigInterface.useQuantiles
hidden?
optionalhidden:boolean
Whether to hide the legend.
Default: false
Inherited from
CosmographSizeLegendConfigInterface.hidden
preserveSelectionOnUnmount?
optionalpreserveSelectionOnUnmount:boolean
Preserves the selection on unmount.
Default
falseInherited from
CosmographSizeLegendConfigInterface.preserveSelectionOnUnmount
noDataMessage?
optionalnoDataMessage:string|false
Text to display when there is no data. When set to false, this message will not be displayed.
Default
'No data'Inherited from
DisplayStateConfigInterface.noDataMessage
loadingMessage?
optionalloadingMessage:string|false
Text to display when data is loading. When set to false, this message will not be displayed.
Default
'Data loading...'Inherited from
DisplayStateConfigInterface.loadingMessage
disableStateMessages?
optionaldisableStateMessages:boolean
Whether to disable all messages in the DisplayState element.
Default
falseInherited from
DisplayStateConfigInterface.disableStateMessages
allowPointerEvents?
optionalallowPointerEvents:boolean
Whether to allow pointer events on the DisplayState element when message is visible.
Default
falseInherited from
DisplayStateConfigInterface.allowPointerEvents
label?
optionallabel:string| (accessor?) =>string
The label for the size legend. Can be a string or a function that returns a string based on an accessor.
Default
''Inherited from
SizeLegendConfigInterface.label
labelFormatter()?
optionallabelFormatter: (n) =>string
The label formatter function to format the size legend label.
Parameters
| Parameter | Type | Description | 
|---|---|---|
n | number | The value to format. | 
Returns
string
The formatted label string.
Default
undefinedInherited from
SizeLegendConfigInterface.labelFormatter
extentLabels?
optionalextentLabels: [number,number]
The labels for the extent of the size legend, represented as a tuple of [min, max] values.
Default
undefinedInherited from
SizeLegendConfigInterface.extentLabels
enableEvents?
optionalenableEvents:boolean
Whether to enable events for the size legend.
Default
trueInherited from
SizeLegendConfigInterface.enableEvents
showSublabels?
optionalshowSublabels:boolean
Whether to show sublabels for the size legend.
Default
falseInherited from
SizeLegendConfigInterface.showSublabels
minSubLabel?
optionalminSubLabel:string
The label for the minimum value in the size legend.
Default
'min'Inherited from
SizeLegendConfigInterface.minSubLabel
maxSubLabel?
optionalmaxSubLabel:string
The label for the maximum value in the size legend.
Default
'max'Inherited from
SizeLegendConfigInterface.maxSubLabel
onClick()?
optionalonClick: (e) =>void
Callback function that is called when the size legend is clicked.
Parameters
| Parameter | Type | Description | 
|---|---|---|
e | Event | The click event object. | 
Returns
void
Inherited from
SizeLegendConfigInterface.onClick
onMinClick()?
optionalonMinClick: (size,value,e) =>void
Callback function that is called when the minimum value in the size legend is clicked.
Parameters
| Parameter | Type | Description | 
|---|---|---|
size | undefined | number | The current size value. | 
value | undefined | number | The current value associated with the size. | 
e | Event | The click event object. | 
Returns
void
Inherited from
SizeLegendConfigInterface.onMinClick
onMaxClick()?
optionalonMaxClick: (size,value,e) =>void
Callback function that is called when the maximum value in the size legend is clicked.
Parameters
| Parameter | Type | Description | 
|---|---|---|
size | undefined | number | The current size value. | 
value | undefined | number | The current value associated with the size. | 
e | Event | The click event object. | 
Returns
void
Inherited from
SizeLegendConfigInterface.onMaxClick
onHover()?
optionalonHover: (e) =>void
Callback function that is called when the size legend is hovered over.
Parameters
| Parameter | Type | Description | 
|---|---|---|
e | Event | The hover event object. | 
Returns
void