# useEcharts

useEcharts (opens new window) Composables Api 基于 Echarts 封装, 官网 (opens new window)

# Props

名称 类型 默认值 说明
labRef Ref<HTMLDivElement | HTMLCanvasElement | undefined> 显示图表的DOM
initOption EChartOption echarts option
theme string | object macarons 主题

# Example

在线链接 (opens new window)

在线代码

@/views/home/components/WorksChartCard (opens new window)

@/views/home/components/TopicsChartCard (opens new window)

@/views/home/components/LinksChartCard (opens new window)