파이 차트의 가운데에 특정 글꼴, 글꼴 크기 및 글꼴 색이있는 텍스트를 추가 한 후입니다. 하이 차트를 사용하여 아래 코드에 대해 어떻게 할 수 있습니까?파이 그래프의 중심에 텍스트 추가하기 하이 차트
다른 게시물을 사용하여이 문제를 해결하기 위해 여러 가지 방법을 시도했지만이 질문에 완전히 답하는 것 같지 않으며 실제로 작동합니다.
이 답변의$(function() {
// Create the chart
Highcharts.setOptions({
colors: ['#26d248', '#323232']
});
chart = new Highcharts.Chart({
chart: {
renderTo: 'summoner-pie-container',
type: 'pie',
backgroundColor:'transparent'
}, plotOptions: {
series: {
marker: {
states: {
hover: {
enabled: false
}
}
}
},
pie: {
borderWidth: 0
}
},
title: {
text: '',
style: {
display: 'none'
}
}, credits: {
enabled: false
}, exporting: {
buttons: {
contextButton: {
enabled: false
}
}
},
tooltip: {
formatter: function() {
return '<b>'+ this.point.name +'</b>: '+ this.y;
}
},
series: [{
data: [["Damage Dealt",34000],["Team Damage Dealt",86423]],
size: '60px',
innerSize: '70%',
dataLabels: {
enabled: false
}
}]
});
});