vite+vue3中如何使用echarts图表?
网友回复
首先安装
npm install echarts --save
代码:
<template>
<div id="chart" style="width:100%;height:400px;" ></div>
</template>
<script lang="ts">
import { defineComponent, ref } from "vue";
import * as echarts from 'echarts';
import { onBeforeMount, onMounted, onBeforeUpdate, onUpdated, onBeforeUnmount, onUnmounted, onAc...点击查看剩余70%


