官网

http://charts.jiaminghi.com/

介绍

Charts 是一个轻量级的简易图表,主要为 DataV 大屏数据展示组件库提供图表支持,在该场景下不考虑图表交互,仅需展示效果,因此插件不提供交互及复杂功能。插件配置项参考 eCharts,具有相关经验则极易上手使用

支持:折线图、柱状图、饼状图、雷达图、仪表盘

安装

  • npm 安装
1
npm install @jiaminghi/charts
  • yarn 安装
1
yarn add @jiaminghi/charts

使用

1
2
3
4
5
6
7
8
9
10
import Charts from '@jiaminghi/charts'

const container = document.getElementById('container')

const myChart = new Charts(container)

myChart.setOption({
title: 'My Chart',
// ...otherConfig
})

配置项

http://charts.jiaminghi.com/config/

实例

http://charts.jiaminghi.com/example/