Flot pie + bar charts on the same canvas -
does of know how place pie chart next bar chart using flot? them use same data.
i tried enable showing pie in series options, bar chart blank.
$.plot("#placeholder", data, { series: { bars: { barwidth: 0.2, }, stack: null, pie: { show: true } }, yaxis: { min: 0, tickformatter: plnformatter }, xaxis: { mode: "categories", ticklength: 0, autoscalemargin: 0.1 }, grid: { borderwidth: 0, hoverable: true, clickable: true } });
i had same question, put div on canvas, note css style:
<div id="error-pie-chart" style="height:120px;width:120px;position: absolute;left:230px;top:50px;z-index:1;"></div>
and use flot draw pie on div, works!
Comments
Post a Comment