Skip to main content
Version: Next

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

ParameterType
valuenumber

Returns

string | Element


titleWidth?

optional titleWidth: number;

valueFormatter()?

optional valueFormatter: (value) => string | Element;

Parameters

ParameterType
valuenumber

Returns

string | Element