HorizontalStackedBarProps
Properties
barHeight?
optional barHeight: number;
blockGroupNames
blockGroupNames: string[];
blockGroupStyles?
optional blockGroupStyles: CSSProperties[];
Style for each block group
max
max: number;
Maximum value for each row
rowConfigs
rowConfigs: RowConfig[];
row config
rows
rows: HorizontalStackedBarRow[];
row data
showLegend?
optional showLegend: boolean;
showTargetLabel?
optional showTargetLabel: boolean;
showTitle?
optional showTitle: boolean;
showTotalLabel?
optional showTotalLabel: boolean;
target?
optional target: number;
targetLabelPosition?
optional targetLabelPosition: "bottom" | "top";
targetLabelStyle?
optional targetLabelStyle: "normal" | "tight";
targetReachedColor?
optional targetReachedColor: string;
targetValueFormatter()?
optional targetValueFormatter: (value) => string | Element;
Parameters
Parameter | Type |
---|---|
value | number |
Returns
string
| Element
titleWidth?
optional titleWidth: number;
valueFormatter()?
optional valueFormatter: (value) => string | Element;
Parameters
Parameter | Type |
---|---|
value | number |
Returns
string
| Element