This commit is contained in:
duanhao 2025-08-27 12:16:42 +08:00
parent 3248de2bc6
commit 2049a5023c

View File

@ -181,15 +181,7 @@ const processData = async () => {
// //
const initChart = async () => { const initChart = async () => {
// if (chartInstance) { const chartDom = document.getElementById("bridgeCommunityChart")
// chartInstance.dispose()
// }
// const chartDom = document.getElementById("bridgeCommunityChart")
// if (!chartDom) return
// chartInstance = echarts.init(chartDom)
const chartDom = document.getElementById('bridgeCommunityChart')
if (!chartDom) return if (!chartDom) return
// DOM // DOM
@ -463,7 +455,7 @@ const initChart = async () => {
} }
] ]
} }
// clear series // clear series
chartInstance.clear() chartInstance.clear()
chartInstance.setOption(option, true) chartInstance.setOption(option, true)
} }