I use jqPlot 1.0.0b2_r1012. I try to draw pie chart and I can draw successfuly. However Legend overflow from div. I explain my code and attach screen shot in below.
I use this function draw pie chart:
function drawjQPlot(div, data) {
var plot1 = jQuery.jqplot(div, [data],
{
seriesDefaults: {
renderer: jQuery.jqplot.PieRenderer,
rendererOptions: {
showDataLabels: true
}
},
legend: { show: true, location: 's', placement: 'outside',
rendererOptions: {
numberColumns: '2'
}
}
}
); }
Html structure like this:
<fieldset>
<legend>Test</legend>
<table>
<tr>
<td>
<div id="chart1">
</div>
</td>
<td>
<div id="chart2">
</div>
</td>
<td>
<div id="chart3">
</div>
</td>
</tr>
</table>
</fieldset>
Screen shot:
How can fix this problem?
Thank you.