|
|
@ -140,6 +140,13 @@ const chartRef = ref<HTMLElement | null>(null) |
|
|
|
onMounted(() => { |
|
|
|
echarts.init(chartRef.value, null, { renderer: 'svg' }) |
|
|
|
}) |
|
|
|
window.addEventListener('resize', () => { |
|
|
|
let myChart = echarts.getInstanceByDom(chartRef.value) |
|
|
|
if (!myChart) { |
|
|
|
myChart = echarts.init(chartRef.value, null, { renderer: 'svg' }) |
|
|
|
} |
|
|
|
myChart.resize() |
|
|
|
}) |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
|