차트가 원형이지만 작동하지 않을 때 다음 코드를 사용하여 기본 dataLabels
규칙을 덮어 쓰려고합니다.하이 차트가 기본 DataLabel을 덮어 씁니다.
내가 무엇이 누락 되었습니까?
plotOptions: {
series:{
dataLabels:{
shadow : false,
allowOverlap:true,
useHTML: true,
style :{
textShadow :'none',
fontSize:"16px"
},
formatter: function() {
return '<p>'+(this.y).format() + ' ' + suffixe+'</p>';
}
}
},
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
style:{
fontSize:"18px"
},
formatter: function() {
return '<strong>'+ this.point.name +'</strong>: '+ this.y;
}
}
}
}
내가 여기에서 볼
안녕, plotOptions.series 및 plotOptions.pie 객체를 사용하는 대신 특정 시리즈 계열 내에서 데이터 라벨을 변경할 수 있다고 생각합니다. 예를 들어 차트에 선과 원형 시리즈가있는 경우 plotOptions.line 및 plotOptions.pie 개체를 사용할 수 있습니다. http://jsfiddle.net/w0cujkbm/1/ –