Interface: CosmographBarsConfig
Extends
Properties
useLinksData?
optionaluseLinksData:boolean
Defines type of Cosmograph Crossfilter to use. true for links, false for points. Can only be set once during initialization.
Default
falseInherited from
CosmographBarsConfigInterface.useLinksData
accessor?
optionalaccessor:string
Data column key to access time values for the CosmographBars.
Default
undefinedInherited from
CosmographBarsConfigInterface.accessor
selectOnClick?
optionalselectOnClick:boolean
Enables or disables selecting points with bar value on graph by clicking.
Default
trueInherited from
CosmographBarsConfigInterface.selectOnClick
highlightSelectedData?
optionalhighlightSelectedData:boolean
Whether to highlight currently selected data on bars. If true, can impact performance.
Default
trueInherited from
CosmographBarsConfigInterface.highlightSelectedData
preserveSelectionOnUnmount?
optionalpreserveSelectionOnUnmount:boolean
Preserves the selection on unmount.
Default
falseInherited from
CosmographBarsConfigInterface.preserveSelectionOnUnmount
id?
optionalid:string
Custom ID for the filtering client. If not provided, uses constructor name. Use this to maintain stable client connections across component remounts.
Default
undefinedInherited from
CosmographBarsConfigInterface.id
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
BarsConfigInterface.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
BarsConfigInterface.loadingMessage
disableStateMessages?
optionaldisableStateMessages:boolean
Whether to disable all messages in the DisplayState element.
Default
falseInherited from
BarsConfigInterface.disableStateMessages
allowPointerEvents?
optionalallowPointerEvents:boolean
Whether to allow pointer events on the DisplayState element when message is visible.
Default
falseInherited from
BarsConfigInterface.allowPointerEvents
maxDisplayedItems?
optionalmaxDisplayedItems:number
The maximum number of bars to display in the bars visualization. When exceeded, a “show more” button will appear to display additional items.
Default
10Inherited from
BarsConfigInterface.maxDisplayedItems
showSortingBlock?
optionalshowSortingBlock:boolean
Specifies whether the sorting block should be visible. The sorting block allows users to sort bars by count or alphabetically.
Default
trueInherited from
BarsConfigInterface.showSortingBlock
showSearch?
optionalshowSearch:boolean
Specifies whether the search container should be visible.
Default
trueInherited from
BarsConfigInterface.showSearch
sort?
optionalsort:"count"|"alphabetical"
Specifies the sort order for the bars visualization. Can be either ‘alphabetical’ to sort the bars alphabetically, or ‘count’ to sort the bars by their associated count values.
Default
'count'Inherited from
BarsConfigInterface.sort
sortAscending?
optionalsortAscending:boolean
Specifies whether the bars should be sorted in ascending or descending order.
If sort is set to 'count', this determines whether the bars are sorted by their associated count values in ascending or descending order.
If sort is set to 'alphabetical', this determines whether the bars are sorted alphabetically in ascending or descending order.
Default
falseInherited from
BarsConfigInterface.sortAscending
countFormatter()?
optionalcountFormatter: (count) =>string
A formatter function that is used to format the count values displayed on the bars. This allows for custom formatting of numbers (e.g., adding thousand separators, currency symbols, etc.).
Parameters
| Parameter | Type | Description | 
|---|---|---|
count | number | The numeric value to format | 
Returns
string
The formatted string representation of the count
Inherited from
BarsConfigInterface.countFormatter
expanded?
optionalexpanded:boolean
Determines whether the bars visualization is initially expanded or collapsed.
When expanded is true, the bars visualization is initially displayed in an expanded state.
When false, the bars visualization is initially displayed in a collapsed state.
Default
falseInherited from
BarsConfigInterface.expanded
onClick()?
optionalonClick: (data?) =>void
Callback function that is called when a bar in the bars visualization is clicked.
The handler is passed the BarData object for the clicked bar.
Parameters
| Parameter | Type | Description | 
|---|---|---|
data? | BarData | The data for the clicked bar, or undefined if no bar is selected | 
Returns
void
Inherited from
BarsConfigInterface.onClick
onBarHover()?
optionalonBarHover: (data) =>void
Callback function that is called when the mouse hovers over a bar in the bars visualization.
The handler is passed the BarData object for the hovered bar.
Parameters
| Parameter | Type | Description | 
|---|---|---|
data | BarData | The data for the hovered bar | 
Returns
void
Inherited from
BarsConfigInterface.onBarHover