提交 2170729e authored 作者: 王鹏飞's avatar 王鹏飞

update

上级 047d1831
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
}) })
const option = { const option = {
// tooltip: { trigger: 'axis', axisPointer: { type: 'none' } }, // tooltip: { trigger: 'axis', axisPointer: { type: 'none' } },
grid: { left: '45px', right: '40px', top: 0, bottom: 0 }, grid: { left: '45px', right: '10px', top: 0, bottom: 0 },
xAxis: { show: false, textAlign: 'left' }, xAxis: { show: false, textAlign: 'left' },
yAxis: { yAxis: {
type: 'category', type: 'category',
......
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
tooltip: { trigger: 'item' }, tooltip: { trigger: 'item' },
legend: { legend: {
orient: 'vertical', orient: 'vertical',
left: this.height + 30, left: this.height,
top: 'middle', top: 'middle',
itemWidth: 10, itemWidth: 10,
itemHeight: 10, itemHeight: 10,
...@@ -60,15 +60,14 @@ export default { ...@@ -60,15 +60,14 @@ export default {
radius: ['60%', '90%'], radius: ['60%', '90%'],
left: '0', left: '0',
width: this.height - 20, width: this.height - 20,
// height: this.height,
stillShowZeroSum: false, stillShowZeroSum: false,
avoidLabelOverlap: false, avoidLabelOverlap: false,
zlevel: 1, zlevel: 1,
label: { formatter: '{d}%', color: '#fff' }, label: { formatter: '{d}%', color: '#fff', show: false },
labelLayout({ dataIndex }) { labelLayout: ({ dataIndex }) => {
return { return {
x: 340, x: this.height + 100,
y: `${dataIndex * 25 + 30}`, y: `${dataIndex * 20 + 30}`,
verticalAlign: 'middle', verticalAlign: 'middle',
align: 'left' align: 'left'
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论