Skip to content

mchao123/use-charts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

use-charts

📖 Description

Easily reuse your echarts charts in vue3.

📦 Install

npm install vue-use-charts

🛠️ Dependencies

Vue 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

About

Easily reuse your echarts charts in vue3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published