图表组件接入 显示成功

This commit is contained in:
mmc
2026-05-14 15:15:50 +08:00
parent abe5631642
commit adf4c37b95
9 changed files with 673 additions and 487 deletions

View File

@@ -75,6 +75,7 @@ export const UniversalLineChart = ({
name={item.name}
stroke={item.color || DEFAULT_COLORS[index % DEFAULT_COLORS.length]}
strokeWidth={item.strokeWidth || 2}
strokeDasharray={item.dashed ? '6 6' : undefined}
dot={dot}
activeDot={{ r: 6 }}
/>
@@ -151,11 +152,12 @@ export const UniversalPieChart = ({
showLegend = true,
showTooltip = true,
backgroundColor = '#ffffff',
innerRadius = 60,
outerRadius = 120,
innerRadius = 40,
outerRadius = 60,
paddingAngle = 2,
showLabel = true,
className,
style
}) => {
return (
<div
@@ -166,6 +168,7 @@ export const UniversalPieChart = ({
background: backgroundColor,
borderRadius: 12,
padding: 12,
...style
}}
>
<ResponsiveContainer width="100%" height="100%">