我正在使用两个系列的饼图 . 我的问题是图例没有完全对齐( month
名称不是完美的algin) .
Highcharts.chart('container1', {
chart: {
type: 'pie'
},
credits: {
enabled: false
},
exporting: {
buttons: {
contextButton: {
enabled: false
}
}
},
title: {
text: ''
},
subtitle: {
text: ''
},
plotOptions: {
series: {
allowPointSelect: false,
cursor: 'pointer',
dataLabels: {
inside: true,
formatter: function() {
return (this.y);
},
color:'white',
distance: -30
},
showInLegend:true
}
},
legend: {
x: -15,
y: 10,
symbolHeight: .001,
symbolWidth: .001,
symbolRadius: .001,
itemStyle: {
fontSize:'12px',
font: '10pt',
color: '#666666',
fontWeight: 'normal',
},
},
series: [{
colorByPoint: true,
data: [{
name: Aug,
y: 74
}],
center: [40, 5],
size: 50,
}, {
colorByPoint: true,
data: [{
name: Sep,
y: 94
}],
center: [100, 5],
size: 50
}]
});
在highcharts中,每个系列都有不同的传说吗?我试图调整x和y坐标,但移动两个图例,所以第一个图例完美对齐,但第二个图例没有完美对齐 .
或者在图表上方有两个不同的选项?