vue-use-charts
v1.0.0
Published
vue3 chart library
Downloads
3
Readme
use-charts
Description
Easily reuse your echarts charts in vue3.
Install
npm install vue-use-charts
Dependencies
vue3 + echarts
Usage
import { ref } from 'vue'
import { useCharts } from 'vue-use-charts'
import { ChartDemo } from './charts/demo'
const { createChartComp } = useCharts()
const MyChart = createChartComp(ChartDemo)
const data = ref({
// ...
})
const echartsOpts = {
// ...
}
<template>
<MyChart :data="data" :opts="echartsOpts" class="my-chart"/>
</template>
Thanks
License
MIT