v-charts-v2

Vue Echarts Components
2,984 6,745
Install
npm install v-charts-v2
Latest Version:2.0.9
Vue:2
License:MIT
Last Updated:Aug 10, 2024
Links: GitHub  ·  npm
Maintainer: quietcoder

v-charts

Build Status NPM downloads JS gzip size Npm package Language License Join the chat at https://gitter.im/ElemeFE/v-charts

在使用echarts生成图表时,经常需要做繁琐的数据类型转化、修改复杂的配置项,v-charts的出现正是为了解决这个 痛点。基于Vue2.0和echarts封装的v-charts图表组件,只需要统一提供一种对前后端都友好的数据格式 设置简单的配置项,便可轻松生成常见的图表。

安装


npm i v-charts echarts -S

文档


v-charts.js.org

快速上手


<template>
  <div>
    <ve-line :data="chartData"></ve-line>
  </div>
</template>

<script>
import VeLine from 'v-charts/lib/line'
export default {
  created () {
    this.chartData = {
      columns: ['日期', '销售量'],
      rows: [
        { '日期': '1月1日', '销售量': 123 },
        { '日期': '1月2日', '销售量': 1223 },
        { '日期': '1月3日', '销售量': 2123 },
        { '日期': '1月4日', '销售量': 4123 },
        { '日期': '1月5日', '销售量': 3123 },
        { '日期': '1月6日', '销售量': 7123 }
      ]
    }
  },

  components: { VeLine }
}
</script>

LICENSE


MIT

Related Packages

v-charts

Vue Echarts Components

152,118 6,746
sxkj-echarts

SXKJ Echarts Components

6,134
@hd-fe/echarts

前端图表库

5,510
mars-echarts

用于基金产品的echarts组件包-vue3

3,511 0
v3-echarts

v3-echarts 开箱即用的图表组件库

3,131 3

Version History

Version Released Vue License
2.0.9 >2.0.0 MIT
2.0.8 >2.0.0 MIT
2.0.7 >2.0.0 MIT
2.0.6 >2.0.0 MIT
2.0.5 >2.0.0 MIT