Add tooltipLabels field to ChartData

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-04-07 15:16:32 +03:00
1 parent 7c34ba36a6
commit 7b44690efe
1 file changed
+3
+3
View File
@@ -13,6 +13,7 @@ import { Badge } from "../badge";
export interface ChartData extends ChartJS.ChartData {
datasets?: ChartDataSets[];
tooltipLabels?: ChartTooltipLabel[];
}
export interface ChartDataSets extends ChartJS.ChartDataSets {
@@ -36,6 +37,8 @@ export interface ChartProps {
className?: string;
}
type ChartTooltipLabel = (percent: string) => string | string;
export enum ChartKind {
PIE = "pie",
BAR = "bar",