图表组件接入 显示成功
This commit is contained in:
@@ -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%">
|
||||
|
||||
Reference in New Issue
Block a user