我的代码中有以下内容。有选择
legend: {show:true}
把图表弄得一团糟。图例部分太长了,没有图表。我在此处粘贴了图表外观的图像: http ://tinypic.com/view.php?pic=2eqgbgy&s=7
虽然没有图例选项它显示很好,但图表当然没有图例。
在 Chrome 中,我看到以下异常 Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1
<script type="text/javascript">
line2 = [['Living Expenses',1000], ['Loans',2000], ['Credit
Card',500]];
$j(document).ready(function() {
$j.jqplot.config.enablePlugins = true;
$j.jqplot('piechartdiv', [line2], {
title: 'Where is my money going?',
seriesDefaults:{renderer:$j.jqplot.PieRenderer,
rendererOptions:{sliceMargin:8}}, legend:{show:true}
});
});
</script>
<div style="width: 450px;margin: 0px auto;">
<div id='piechartdiv'></div>
</div>
任何帮助表示赞赏。