Commit a6248200 by zhaochengxiang

bug fi

parent 3f6af11d
...@@ -424,6 +424,7 @@ const StackedLine = ({ data }) => { ...@@ -424,6 +424,7 @@ const StackedLine = ({ data }) => {
serieNames = Object.keys(data[0]).filter(item => item !== 'date') serieNames = Object.keys(data[0]).filter(item => item !== 'date')
} }
console.log('serieNames', serieNames)
let option = { let option = {
tooltip: { tooltip: {
trigger: 'axis' trigger: 'axis'
...@@ -456,7 +457,9 @@ const StackedLine = ({ data }) => { ...@@ -456,7 +457,9 @@ const StackedLine = ({ data }) => {
}) })
}) })
} }
echartsRef.current?.setOption(option) echartsRef.current?.setOption(option, {
notMerge: true
})
} }
return ( return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment