获取日志消息:饼图的直径太小,不能渲染。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