0
mvc3을 사용하여 jQuery
모바일 앱을 만듭니다. 이 내에서 jqPlot
원형 차트를 만들었습니다.mvc3에서 jqplot 원형 차트의 모든 조각 채우기
파이 차트의 모든 슬라이스에 색상이 표시되지 않습니다. 즉 차트에 4 개의 슬라이스가있는 경우에도 한 슬라이스의 색상이 표시되는 경우가 있으며 다른 3 개의 슬라이스에는 정의 된 대신 흰색 배경이 표시됩니다. 슬라이스 배경 색상.
단색으로 채울 때마다 전체 차트를 표시하고 싶습니다.
jqPlot
파이 차트의 이미지 :
http://i.stack.imgur.com/qH4o9.png
나는이 코드를 사용하고 있습니다 :
이jQuery(document).ready(function ($) {
var data = [
['Correct Answers', @Correct_Answer], ['Incorrect Answers', @Incorrect_Answer], ['Skipped Answers', @Skipped_Answer],
['Unseen Answers', @Unseen_Answer]
];
var plot1 = $.jqplot('score_chart', [data],
{
seriesColors: ["#83abc0", "#64d6f4", "#3399ff", "#03597a"],
highlightColors: ["#ADC7D5", "#99E3F6", "#78BAFE", "#568FA6"],
seriesDefaults: {
// Make this a pie chart.
fill: true,
renderer: $.jqplot.PieRenderer,
rendererOptions: {
// Put data labels on the pie slices.
// By default, labels show the percentage of the slice.
padding: 5,
fill: true,
fillAndStroke: true,
showDataLabels: true
}
},
legend: { show: true, location: legendlocation },
});
});
사람이이 문제를 도와 줄 수 있습니까?
문제를 제시 할 수있는 http://jsfiddle.net을 만들 수 있습니까? 이것은 당신이 경험하는 것이 특이한 v입니다. – Boro