獲取日誌消息:餅圖的直徑太小,不能渲染。jqplot餅圖無法正確顯示。
然後,似乎當我將鼠標懸停或點擊網頁我進去:遺漏的類型錯誤:無法讀取的不確定
<link href="/Content/jqPlot/jquery.jqplot.css" rel="stylesheet" type="text/css" />
<script src="/Scripts/jquery.jqplot.js" type="text/javascript"></script>
<script src="/Scripts/jqplot.pieRenderer.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
//GetWeeklyProjectSummary();
Test();
});
function Test() {
var data = [["987 Project",74],["ABC Project",68],["XYZ project",26]];
var plot1 = jQuery.jqplot('weeklyProjectSummary', [data],
{
seriesDefaults: {
// Make this a pie chart.
renderer: jQuery.jqplot.PieRenderer,
rendererOptions: {
// Put data labels on the pie slices.
// By default, labels show the percentage of the slice.
showDataLabels: true
}
},
legend: { show: true, location: 'e' }
}
);
}
</script>
這裏財產「0」是其進入股利:
<div id="weeklyProjectSummary"></div>
這是我在頁面上得到的:
讓我知道你是否需要任何更多的細節。
這個工作,但我怎麼得到的傳說? – Justin
呵呵,閱讀鏈接! – Justin
一切都很好,謝謝。 – Justin