Tôi đang tạo một biểu đồ hình tròn trong highcharts.Highcharts Pie Chart.Làm thế nào để thiết lập nhãn trong hai dòng
Có ai biết cách đặt nhãn dữ liệu thành hai dòng không?
Tôi đang tìm sự cố này khi nhãn dữ liệu quá dài.
http://jsfiddle.net/larrytron/fSjnD/
$(function() {
$('#container').highcharts({
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: 'Browser market shares at a specific website, 2010'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
color: '#000000',
maxStaggerLines:1,
connectorColor: '#000000',
format: '<b>{point.name}</b>: {point.percentage:.1f} %'
},
}
},
series: [{
type: 'pie',
name: 'Browser share',
data: [
['Firefox jandler glander gramenauer gramen', 45.0],
['IE', 26.8],
{
name: 'Chrome',
y: 12.8,
sliced: true,
selected: true
},
['Safari', 8.5],
['Opera', 6.2],
['Others', 0.7]
]
}]
});
});
đúng. cảm ơn. – larrytron