Reputation: 295
I am trying to use flot pie chart API to generate pie charts on the data received from server.
I have looked at the examples given here and other places.
I tried using the same code but for some reason it's not showing up properly.
This is the current output
And the code used for generating the chart:
$.plot($("#placeholder"), poll_data, {
series: {
pie: {
show: true
}
},
legend: {
show: false
}
});
<div id="placeholder" style="width: 250px; height: 250px;"></div>
Any idea why this is not working? Surprisingly, it works when I change legend show to true;
Upvotes: 0
Views: 311
Reputation: 38189
I believe this is fixed in the master branch (zip), which is currently at version 0.8-alpha; try using that.
Upvotes: 2