zs-chart
v1.0.4
Published
vue3 echart插件
Downloads
10
Readme
zs-chart
基于vue3的echarts图表库
安装和使用方法
- npm install zs-chart
- vue中使用
<template>
<z-chart ref="chart" :render-mode="'svg'" :width="500" ></z-chart>
</template>
<script setup lang="ts">
import {ZChart} from "zs-chart"; //按需引入方法
import {ref,onMounted} from 'vue'
const chart = ref()
onMounted(() => {
chart.value.paintChart({option},true)
})
</script>