我的极坐标堆积柱形图的图例被切断了,像这样:
我怎样才能避免这种情况?
$('#container').highcharts({
series: [
{
name: 'someCategory #1',
data: [12, 13, 14, 15, 5, 17]
},
{
name: 'someCategory #2',
data: [13, 15, 4, 12, 14, 16]
},
{
name: 'someCategory #3',
data: [1, 15, 13, 4, 14, 30]
},
{
name: 'someCategory #4',
data: [13, 15, 3, 12, 1, 16]
}
],
chart: {
polar: true,
type: 'column',
borderWidth: 0,
backgroundColor: 'transparent',
plotBackgroundColor: 'transparent',
plotBorderWidth: 0,
width: 275,
height: 300
},
title: {
text: ''
},
subtitle: {
text: ''
},
legend: {
enabled: false,
},
xAxis: {
categories: ['thisisalong name', 'yetanotherreallylong name', 'i dont even know what to write', 'hmletsthinkofsomething', 'stillnonamethought of', 'thisisthelastone'],
},
yAxis: {
min: 0,
endOnTick: false,
showLastLabel: true,
labels: {
formatter: function () {
return this.value + '%';
}
}
},
tooltip: {
valueSuffix: '%',
followPointer: true
},
plotOptions: {
series: {
stacking: 'normal',
shadow: false,
groupPadding: 0,
pointPlacement: 'on'
},
}
});