no message

Former-commit-id: 6ef75680bbad61aa78ef3701e450808caaf306d2
Former-commit-id: 8b702b0ec540ca8b50410db8a79f924218675e32
Former-commit-id: b6f46deaf3f3dc6bed93a2a25337064f074c2f98
This commit is contained in:
李杨
2018-02-19 09:50:29 +08:00
parent 61f3ab6a75
commit 4bd5aef5af
2 changed files with 5 additions and 2 deletions

View File

@@ -34,13 +34,16 @@ export default {
formatter: val => (val * 100).toFixed(2) + '%'
}
})
// 设置坐标系
this.chart.coord('theta', {
radius: 0.75
radius: 0.7
})
// tooltip 设置
this.chart.tooltip({
showTitle: false,
itemTpl: '<li><span style="background-color:{color}" class="g2-tooltip-marker"></span>{name}: {value}</li>'
})
// 创建图形
this.chart.intervalStack()
.position('percent')
.color('item')

View File

@@ -84,7 +84,7 @@ export default {
api: {url: '/api/chart/G2Pie', data: {type: 'base'}},
refName: 'G2PieBase',
data: [],
padding: [30, 40, 50, 50]
padding: [30, 30, 30, 30]
}
],
layout: {