这次给小伙伴们推荐的是2个基于vue.js创建的超炫酷实用的图表组件vue-chart。
![df40ce40350defc7caf5f9ec744d7214.png](https://img-blog.csdnimg.cn/img_convert/df40ce40350defc7caf5f9ec744d7214.png)
1、VueChart
vue-chart 是一个基于 vue.js + chart.js 构建可复用的超漂亮 Vue 图表组件。
![52659931b1adff2a5f8dea16306770d5.png](https://img-blog.csdnimg.cn/img_convert/52659931b1adff2a5f8dea16306770d5.png)
安装
$ npm i @seregpie/vue-chart -S
使用组件
组件参数
![1a9c81f0db53012f7d89940e3d849e73.png](https://img-blog.csdnimg.cn/img_convert/1a9c81f0db53012f7d89940e3d849e73.png)
提供各种精美图表组件演示示例
![ad6064292d93a326ec1126f7991fb34f.png](https://img-blog.csdnimg.cn/img_convert/ad6064292d93a326ec1126f7991fb34f.png)
![f0b361c209c1cc5a4a86669e2e0e81bf.png](https://img-blog.csdnimg.cn/img_convert/f0b361c209c1cc5a4a86669e2e0e81bf.png)
![88d223d92ee3795c8bd7f8a4b26f9c16.png](https://img-blog.csdnimg.cn/img_convert/88d223d92ee3795c8bd7f8a4b26f9c16.png)
附上示例及仓库地址
# 官网文档https://www.chartjs.org/# 演示地址https://seregpie.github.io/VueChart/# github地址https://github.com/SeregPie/VueChart
![043b1d50ba12704f985faef1948e0d44.png](https://img-blog.csdnimg.cn/img_convert/043b1d50ba12704f985faef1948e0d44.png)
2、VueChartKick
vue-chartkick 号称只用一行代码就可以创建炫酷图表的 vue.js 组件。
![09ee991b94aeda344cc2922cd9e5721d.png](https://img-blog.csdnimg.cn/img_convert/09ee991b94aeda344cc2922cd9e5721d.png)
安装
$ npm i vue-chartkick chart.js -S
使用组件
import Vue from 'vue'import Chartkick from 'vue-chartkick'import Chart from 'chart.js'Vue.use(Chartkick.use(Chart))
同样提供了各种丰富的演示示例
![fe076b4dd1a4ca6d50c41abf831bce80.png](https://img-blog.csdnimg.cn/img_convert/fe076b4dd1a4ca6d50c41abf831bce80.png)
![6908a2eb148bcbca90eba9b934fe1c14.png](https://img-blog.csdnimg.cn/img_convert/6908a2eb148bcbca90eba9b934fe1c14.png)
![da2591ba01e89b4f8eb02d5bfc75fc63.png](https://img-blog.csdnimg.cn/img_convert/da2591ba01e89b4f8eb02d5bfc75fc63.png)
# 演示地址https://chartkick.com/vue# github地址https://github.com/ankane/vue-chartkick
需要做图表统计的同学,绝对不要错过,可以去尝试下哈!如果觉得对你有帮助可以给个赞或转发,多谢支持!