|
|
@ -27,7 +27,7 @@ const initChart = () => { |
|
|
|
if (!chartRef.value) { |
|
|
|
return |
|
|
|
} |
|
|
|
myChart = echarts.init(chartRef.value) |
|
|
|
myChart = echarts.init(chartRef.value, null, { renderer: 'svg' }) |
|
|
|
const option = { |
|
|
|
tooltip: { |
|
|
|
formatter: '{a} <br/>{b} : {c}%', |
|
|
@ -70,7 +70,7 @@ onUnmounted(() => { |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
|
<div ref="chartRef" style="width: 40vw; height: 30vw" /> |
|
|
|
<div ref="chartRef" style="width: 100%; height: 100%" /> |
|
|
|
</template> |
|
|
|
|
|
|
|
<style> |
|
|
|