1.0.18 • Published 3 years ago

vue-charts-cmp v1.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vue-charts-cmp

引入文件

import XXX from 'vue-charts-cmp';
import "vue-charts-cmp/dist/vcc-chart.css";

基础竖状图

<vcc-verticalbar
      :source="testData"
      :color="color"
      :options="options"
      :title="title"
      :subTitle="subTitle"
    />

数据源格式:  array
testData=[{name: 'A', value: 20}, {name: 'B', value: 10}]

基色:String
color= '#5470c6';

图表配置项:object
options

图表主标题:string
title

图表副标题:string
subtitle    

横向竖状图

<vcc-reversebar
      :source="testData"
      :colors="colors"
      :options="options"
      :title="title"
      :subTitle="subTitle"
    />

数据源格式:  array
testData=[{name: 'A', value: 20}, {name: 'B', value: 10}]

基色:array
colors=['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4','#ea7ccc'] 

图表配置项:object
options

图表主标题:string
title

图表副标题:string
subtitle

饼状图

<vcc-piebar
      :source="testData"
      :options="options"
      :title="title"
      :subTitle="subTitle"
      :ring="ring"
      :chartHeight="height"
      :labelled="labelled"
      :colors="colors"
    />

数据源格式: array
testData=[{name: 'A', value: 20}, {name: 'B', value: 10}]

图表配置项:object
options

图表主标题:string
title

图表副标题:string
subtitle

图表类型:bool
ring: true -> 空心环; false -> 实心饼

图表高度:number
chartHeight

图表是否展示每部分数据: bool
labelled

基色:array
colors=['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4','#ea7ccc'] 

基础折现图

<vcc-blinebar
      :source="testData"
      :options="options"
      :title="title"
      :subTitle="subTitle"
      :colors="colors"
    />

数据源格式: array
testData=[
  {name: 'A', data: [{name: 'won', 'value': 10}, {name: 'tue', 'value': 10}]}, 
  {name: 'B', data: [{name: 'won', 'value': 10}, {name: 'tue', 'value': 10}]}
]

图表配置项:object
options

图表主标题:string
title

图表副标题:string
subtitle

基色:array
colors=['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4','#ea7ccc'] 
1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago