1
원형 차트의 각 조각의 비율이 50 % (또는 52 % 및 48 %)에 도달하는 동안 백분율의 위치가 변경됩니다. 즉 그래프의 각 조각이 16 % 및 84 % 일 때 동일하지 않습니다. 내가 사용하는 코드는 다음과 같습니다Highcharts 변동률 위치
Highcharts.chart('container1', {
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false,
type: 'pie',
options3d: {
enabled: true,
alpha:70,
beta: 0
}
},
title: {
text: ''
},
plotOptions: {
pie: {
allowPointSelect: false,
cursor: 'pointer',
size:100,
depth: 15,
dataLabels: {
textOverflow:'none',
enabled: true,
color:'black',
connectorColor:'transparent',
format:'{point.percentage:.1f}%',
distance:-30,
style:{
textShadow:false}
},
showInLegend: false
}
},
series: [{
type: 'pie',
name: 'ΑΞΚΟΙ - ΑΝΘΣΤΕΣ',
data: [
['Παρόντες', <?php
while ($row2 = mysql_fetch_assoc($res2)) {
while($row1 = mysql_fetch_assoc($res1)){
$row3['COUNT(*)']=$row2['COUNT(*)'] - $row1['COUNT(*)'];
echo $row3['COUNT(*)'];
}
}?>],
['Απόντες', <?php
while($row3 = mysql_fetch_assoc($res3)){
echo $row3['COUNT(*)'];
}
?>]
]
}]
});
나는 비율 상수의 위치를 확인하기 위해 사용할 수있는 기능이있다? 사전에 감사
하이 차트에 대해 알고있는 사람의 조언이 있습니까? – teo
원하는 것을 이해하기가 어렵습니다. –
@teo 찾고있는 이미지를 첨부하십시오. – ewolden