项目作者: hkduan2004

项目描述 :
在使用 echarts 生成图表时,经常需要做繁琐的数据类型转化、修改复杂的配置项,v-charts 的出现正是为了解决这个痛点。基于 Vue2.0 和 echarts 封装的 v-charts 图表组件,只需要统一提供一种对前后端都友好的数据格式设置简单的配置项,便可轻松生成常见的图表。
高级语言: JavaScript
项目地址: git://github.com/hkduan2004/v-charts.git
创建时间: 2020-04-23T11:34:39Z
项目社区:https://github.com/hkduan2004/v-charts

开源协议:MIT License

下载



mark text

v-charts



Build Status


NPM downloads


Npm package


Language


License


Join the chat



Document

|

Sample Project

|

English

|

中文

Chart components based on Vue2.x and Echarts

Features

  • Uniform data format: Use an uniform data format that both convient for frontend and backend, and also easy to create and edit.
  • Simplified configuration: With simplified configuration items, complex requirements can be easily implemented.
  • Simple customization: Provide a variety of custom Echarts way, you can easily set the chart options.

Support

Modern browsers and Internet Explorer 10+, include pc and mobile browser.

Install

  1. npm i v-charts echarts -S

Start

  1. <template>
  2. <div>
  3. <ve-line :data="chartData"></ve-line>
  4. </div>
  5. </template>
  6. <script>
  7. import VeLine from 'v-charts/lib/line.common'
  8. export default {
  9. components: { VeLine },
  10. data () {
  11. return {
  12. chartData: {
  13. columns: ['date', 'PV'],
  14. rows: [
  15. { 'date': '01-01', 'PV': 1231 },
  16. { 'date': '01-02', 'PV': 1223 },
  17. { 'date': '01-03', 'PV': 2123 },
  18. { 'date': '01-04', 'PV': 4123 },
  19. { 'date': '01-05', 'PV': 3123 },
  20. { 'date': '01-06', 'PV': 7123 }
  21. ]
  22. }
  23. }
  24. }
  25. }
  26. </script>

Changelog

Detailed changes for each release are documented in the release notes or ChangeLog.

Contribution

Please make sure to read the Contributing Guide before making a pull request.

License

MIT