sx-echarts
v1.0.9
Published
SX Echarts Components
Downloads
15
Readme
sx-echarts
sx-echarts 是一套基于 Vue2.x 封装的 Echarts 图表组件,用于为开发者提供快速生成图表的服务。
- 使用前可以先参考测试网站的用例
- 如果想要参与代码贡献,请阅读贡献文档
组件引入、组件参数等,请务必阅读doc目录下的使用手册
NPM 安装
$ npm install sx-echarts --save
简单演示
// template
<div>
<sx-line :data="lineData"></sx-line>
</div>
// javascript
data () {
return {
lineData: {
keys: ['date', '用户量'],
values: [
{
date: '2019-01-01',
用户量: 300,
},
{
date: '2019-01-02',
用户量: 230,
},
{
date: '2019-01-03',
用户量: 350,
},
{
date: '2019-01-04',
用户量: 189,
},
{
date: '2019-01-05',
用户量: 298,
},
],
}
}
}