admin管理员组文章数量:1291667
I am using a nested pie chart in my application - The configuration is -
{
options: {
grid: {
left: '300px'
},
legend: {
orient: 'vertical',
x: 'left',
data: ['Autobots','Deceptiocons']
},
series: [
{
name: 'Audit',
type: 'pie',
radius: [30%, '50%'],
label: {
normal: {
position: 'center',
color: '#fff'
}
},
data: [{ value: 500, name: 'Autobots'},{ value: 500, name: 'Decepticons'}]
}
]
}
}
I am using grid , but still the chart is displayed in the center.
I am using a nested pie chart in my application - The configuration is -
{
options: {
grid: {
left: '300px'
},
legend: {
orient: 'vertical',
x: 'left',
data: ['Autobots','Deceptiocons']
},
series: [
{
name: 'Audit',
type: 'pie',
radius: [30%, '50%'],
label: {
normal: {
position: 'center',
color: '#fff'
}
},
data: [{ value: 500, name: 'Autobots'},{ value: 500, name: 'Decepticons'}]
}
]
}
}
I am using grid , but still the chart is displayed in the center.
Share Improve this question edited Dec 7, 2021 at 20:55 GG. 21.9k14 gold badges91 silver badges132 bronze badges asked Mar 29, 2019 at 11:00 BopsiBopsi 2,4566 gold badges41 silver badges64 bronze badges1 Answer
Reset to default 8Line chart, bar chart, and scatter chart (bubble chart) can be drawn in grid
For pie chart, please use Center position of Pie chart: https://echarts.apache/en/option.html#series-pie.center
center: ['20%', '50%']
本文标签: javascriptECharts align pie chart to the rightStack Overflow
版权声明:本文标题:javascript - ECharts: align pie chart to the right - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741537801a2384134.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论