fix: delete worker

This commit is contained in:
jialin
2024-07-10 17:14:55 +08:00
parent 0ed7568859
commit 8607815240
14 changed files with 129 additions and 16 deletions
+10 -2
View File
@@ -17,9 +17,11 @@ const LineChart: React.FC<ChartProps> = (props) => {
const {
seriesData,
xAxisData,
yAxisName,
height,
width,
labelFormatter,
tooltipValueFormatter = null,
legendData = [],
smooth,
title
@@ -34,7 +36,12 @@ const LineChart: React.FC<ChartProps> = (props) => {
},
grid,
tooltip: {
...tooltip
...tooltip,
formatter(params: any) {
return tooltipValueFormatter
? tooltip.formatter(params, tooltipValueFormatter)
: tooltip.formatter(params);
}
},
xAxis: {
...xAxis,
@@ -76,7 +83,8 @@ const LineChart: React.FC<ChartProps> = (props) => {
text: title
},
yAxis: {
...options.yAxis
...options.yAxis,
name: yAxisName
},
xAxis: {
...options.xAxis,