0
확인이 비교적 간단해야한다 :도넛 차트에 범례 추가 - jqPlot을
- 나는, 그러나 작업 '전설'
- 을하는 도넛 차트를 추가 해요 (해당 색상과 함께
Head (+)
처럼) 표시되지 않습니다.
코드 : 내가 잘못
$(document).ready(function(){
var s1 = [['Head (+)',<?php echo $headScore; ?>], ['Head (-)',<?php echo 6-$headScore; ?>]];
var s2 = [['Body (+)',<?php echo $totalScore-$headScore; ?>], ['Body (-)',<?php echo 7-$totalScore+$headScore; ?>]];
var plot3 = $.jqplot('linkchart', [s1,s2], {
title:"Score Profile",
seriesDefaults: {
// make this a donut chart.
renderer:$.jqplot.DonutRenderer,
rendererOptions:{
// Donut's can be cut into slices like pies.
sliceMargin: 3,
// Pies and donuts can start at any arbitrary angle.
startAngle: -90,
showDataLabels: false
},
legend: { show:true, location: 'e' }
}
});
});
을 뭐하는 거지?
OMG! Anish, 정말 고마워! 이것은 정말로 어리석은 사람이었다. 그러나. .. 내가 나 자신을 실제로 발견 할 수 없었던 사람! :-) –