MV23
MV23

Reputation: 295

Error using flot piechart

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 enter image description here

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

Answers (1)

DNS
DNS

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

Related Questions