TopList
TopListProps
, , | Name | Type | Default | Description |
|---|---|---|---|
data | [] | | Records to display as ranked bars. Sorted by |
height? | | | 300px | Chart height. When a number is specified, it's treated as pixels, otherwise a valid CSS height string is expected. |
width? | | | 100% | Chart width. When a number is specified, it's treated as pixels, otherwise a valid CSS width string is expected. |
colorPalette? | 'categorical' | Color palette for the chart. | |
loading? | false | Show the loading indicator when truthy. | |
truncationMode? | 'middle' | Truncation mode applied to bar labels. | |
labelAccessor | | Accessor for the text rendered inside each bar. | |
valueAccessor | | Accessor for the numerical value that determines bar width. | |
valueFormatter? | | <, > | | Formats numerical values shown in tooltips and Y-axis tick labels. |
comparator? | (a: , b: ) => | | Custom comparator function for sorting data items. When omitted, data is sorted by value in descending order. |
actions? | (datapoint: ) => | | Callback that returns the series action menu for the hovered bar.
Return a |
colorPaletteMode? | 'single-color' | Controls how the color palette is applied to bars.
| |
children? | | Slot children forwarded to the internal |
TopList.ColorRule
TopList.ColorRule provides a slot to apply conditional coloring to bars based
on their datapoint values.
ColorRuleProps
Signature:
export declare type ColorRuleProps = {
valueAccessor?: ;
comparator: ;
matchValue: ;
} & ;