style: ui colors

This commit is contained in:
jialin
2024-06-26 10:39:03 +08:00
parent d44f5a72d1
commit 3476d9ec27
12 changed files with 189 additions and 143 deletions
+3 -2
View File
@@ -16,7 +16,7 @@ const LineChart: React.FC<LineChartProps> = (props) => {
height,
xField: xField || 'time',
yField: yField || 'value',
color: color || ['red', 'blue', 'green', 'yellow'],
// color: color || ['red', 'blue', 'green', 'yellow'],
colorField: 'type',
autoFit: true,
slider,
@@ -36,7 +36,8 @@ const LineChart: React.FC<LineChartProps> = (props) => {
// sizeField: 2
// },
style: {
lineWidth: 1.5
lineWidth: 1.5,
opacity: 0.8
},
legend: {
color: {