You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/12/04 04:53:04 UTC
[GitHub] wufeng123456 opened a new issue #9521: 饼图圆心与title中心 为什么不是一个坐标
wufeng123456 opened a new issue #9521: 饼图圆心与title中心 为什么不是一个坐标
URL: https://github.com/apache/incubator-echarts/issues/9521
{
title: {
text: measureName,
padding: [24, 0],
textStyle: {
fontSize: 18,
align: 'center',
color: weColor[0]
},
left: '30%',
top: '40%'
},
tooltip: {
trigger: 'item',
formatter: "{b}: {c} ({d}%)"
},
legend: {
name: '',
itemGap: 15,
itemHeight: 17,
top: '20%',
left: '60%',
textStyle: {
color: '#409EFF'
},
data: parse.xData
},
color: weColor,
series: [{
label: {
normal: {
show: false,
fontSize: 14,
formatter: '{b} \n{c} ({d}%)'
}
},
type: 'pie',
center: ['30%', '40%'],
radius: ['34%', '50%'],
data: dataArr,
itemStyle: {
emphasis: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 2, 2, 0.3)'
}
}
}]
}
图表center设置 30% 40%
图表title 的left:30% top:40%
为什么title 不在 图表的中心 这个两个 % 不是一个参照物
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org