Type alias BarChartLabelFormatter
Bar
Chart
Label
Formatter
: ((info
: { bar
: BarChartBar | undefined; category
: string; chart
: BarChart; subCategory
: string | undefined; value
: number; }) => string)
Type declaration
-
- (info: {
bar: BarChartBar | undefined;
category: string;
chart: BarChart;
subCategory: string | undefined;
value: number;
}): string
-
Parameters
-
info: {
bar: BarChartBar | undefined;
category: string;
chart: BarChart;
subCategory: string | undefined;
value: number;
}
-
-
category: string
-
-
subCategory: string | undefined
-
value: number
Returns string
Type definition for a function that formats text displayed in bar chart labels.
See examples in setCategoryLabels and setValueLabels.