Interface: SizeLegendConfigInterface
Extends
Properties
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
''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
undefinedextent?
optionalextent: [number,number]
The extent of the size legend, represented as a tuple of [min, max] values.
Default
undefinedextentLabels?
optionalextentLabels: [number,number]
The labels for the extent of the size legend, represented as a tuple of [min, max] values.
Default
undefinedenableEvents?
optionalenableEvents:boolean
Whether to enable events for the size legend.
Default
trueform?
optionalform:"line"|"point"
The form of the size legend, either āpointā or ālineā.
Default
'point'showSublabels?
optionalshowSublabels:boolean
Whether to show sublabels for the size legend.
Default
falseminSubLabel?
optionalminSubLabel:string
The label for the minimum value in the size legend.
Default
'min'maxSubLabel?
optionalmaxSubLabel:string
The label for the maximum value in the size legend.
Default
'max'sizeMultiplier?
optionalsizeMultiplier:number
The size multiplier to apply to the size legend.
Default
undefinedonClick()?
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
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
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
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