Skip to content

Commit 6877888

Browse files
authored
Bar pie chart (#193)
feat: 新增组件扩展(柱图悬浮饼图)
1 parent 255875c commit 6877888

File tree

10 files changed

+2063
-9
lines changed

10 files changed

+2063
-9
lines changed

app/data/barpie.js

Lines changed: 754 additions & 0 deletions
Large diffs are not rendered by default.

app/data/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import geo from './geo'
1414
import liquidfill from './liquidfill'
1515
import polar from './polar'
1616
import sankey from './sankey'
17-
17+
import barpie from './barpie'
1818
export default {
1919
bar,
2020
line,
@@ -31,5 +31,6 @@ export default {
3131
geo,
3232
liquidfill,
3333
polar,
34-
sankey
34+
sankey,
35+
barpie
3536
}

docs/_sidebar.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@
2525
- [桑基图](chart-sankey.md)
2626

2727
- 其他
28+
- [组件扩展](component-extension.md)
2829
- [属性配置](setting-demo.md)
2930
- [事件处理](event-demo.md)

docs/base-options.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,18 @@ data: {
164164

165165
* [旭日图](https://vueblocks.github.io/ve-charts/#/chart-sunburst)
166166

167-
* [矩形树图](https://vueblocks.github.io/ve-charts/#/chart-treemap)
168-
169167
* [树图](https://vueblocks.github.io/ve-charts/#/chart-tree)
170168

169+
* [矩形树图](https://vueblocks.github.io/ve-charts/#/chart-treemap)
170+
171171
* [地图](https://vueblocks.github.io/ve-charts/#/chart-geo)
172172

173173
* [词云图](https://vueblocks.github.io/ve-charts/#/chart-wordcloud)
174174

175175
* [水球图](https://vueblocks.github.io/ve-charts/#/chart-liquidfill)
176176

177177
* [极区图](https://vueblocks.github.io/ve-charts/#/chart-polar)
178+
179+
* [桑基图](https://vueblocks.github.io/ve-charts/#/chart-sankey)
180+
181+
* [组件扩展:柱图悬浮饼图](https://vueblocks.github.io/ve-charts/#/component-extension)

docs/base-usage.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ Vue.component('VeBarChart', VeBarChart)
4848
| 地图 | VeGeoChart |
4949
| 词云图 | VeWordcloudChart |
5050
| 水球图 | VeLiquidfillChart |
51+
| 极区图 | VePolarChart |
52+
| 桑基图 | VeSankeyChart |
53+
| 柱图悬浮饼图 | VeBarpieChart |
5154

5255
> Tips:
5356
> * 当按需引入组件时,部分 `ECharts` 模块在用到时也要按需引入
54-
> * 比如 `markArea``markLine`,详见:[可以按需引入的模块列表](https://github.com/ecomfe/echarts/blob/master/index.js)
57+
> * 比如 `markArea``markLine`,详见:[可以按需引入的模块列表](https://github.com/apache/echarts/blob/master/src/echarts.all.ts)
5558
5659
## 创建图表
5760

@@ -77,4 +80,4 @@ export default {
7780
}
7881
}
7982
}
80-
```
83+
```

0 commit comments

Comments
 (0)