chore: dashboard api

This commit is contained in:
jialin
2024-06-26 19:01:38 +08:00
parent 0fa4e21fa5
commit 1293f71bce
21 changed files with 430 additions and 188 deletions
+10 -3
View File
@@ -7,10 +7,12 @@ interface LineChartProps {
color?: string[];
xField?: string;
yField?: string;
slider?: boolean;
labelFormatter?: (v: any) => string;
slider?: any;
}
const LineChart: React.FC<LineChartProps> = (props) => {
const { data, title, color, xField, yField, slider, height } = props;
const { data, title, color, xField, yField, slider, height, labelFormatter } =
props;
const config = {
title,
height,
@@ -28,7 +30,12 @@ const LineChart: React.FC<LineChartProps> = (props) => {
}
},
y: {
tick: false
tick: false,
// size: 14,
// title: '%',
titlePosition: 'top',
titleFontSize: 12,
labelFormatter
}
},
// point: {