Skip to content

图表组件

组件引用

项目中需要安装组件包@bdsoft/chart

pnpm install @bdsoft/chart

页面中使用,

import {shallowRef} from 'vue'
import { comChartLine } from '@bdsoft/chart';

const _options = shallowRef(null); 

-- template
<comChartLine :options="_options"></comChartLine>

注意:

_options配置的声明需要是shallowRef,否则会容易出现内存溢出的情况。
_options的相关配置参考具体组件示例,一般会包含optionsdatas 两个主要对象