我可以从右图边界不缩进传奇正确Highchart馅饼垂直传奇右对齐不固定绘制正确
我的配置
Highcharts.chart('container', {
chart: {
type: 'pie',
plotBackgroundColor: null,
plotBorderWidth: 1,
plotShadow: false,
},
plotOptions: {
pie: {
dataLabels: {
enabled: false
},
showInLegend: true,
center: [150, 150],
},
column: {
stacking: 'percent'
}
},
tooltip: {
pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b> ({point.percentage:.2f}%)<br/>',
shared: true
},
series: [{
name: "My plot",
type: 'pie',
innerSize: '70%',
data: [ ['item',4],['item2',50],['item3',8]]
}],
title: {
text: "My chart"
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
borderWidth:1,
},
});
我猜想我需要对齐传奇左,它右移,但余did't发现任何黑客。
是的,我尝试过。不过,这并不有很大的帮助,因为我必须用最大响应块宽度。使用百分比将会很好。 – hunty