gmmoraesbr / flot

Automatically exported from code.google.com/p/flot
0 stars 0 forks source link

flot pie error on chrome and only 1 data #351

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I'm using chrome v4.1

jquery.flot.js r259
jquery.flot.pie.js r228
excanvas.min.js r223

The problem is that in chrome the chart wont show color if I only give him 
1 data, like this:

var arreglo = [];
arreglo[0] = { label: "Data 1",  data: 50};

$.plot($("#divgraficoDetalle"), arreglo, 
{   
series: {
pie: {
show: true, 
pieStrokeLineWidth: 1, 
pieStrokeColor: '#FFF', 
label: {
show: true,
radius: 5/6,
formatter: function(label, series){
return Math.round(series.percent) + "%";
}
}
}
},
legend: {
show: true, 
position: "ne", 
backgroundOpacity: 0
}
});

So, I can see the label and the legend with the little square and the color 
in that square but I cant see the chart.
If I use the same code with more data I dont have any trouble.

Thank you for the help!

Original issue reported on code.google.com by cele...@gmail.com on 17 May 2010 at 7:35

GoogleCodeExporter commented 8 years ago
I think this was just fixed in another issue for the development version - if 
you can't use that, try passing data: [0] (that is, put the data in an array) 
and see if it helps.

Original comment by olau%iol...@gtempaccount.com on 13 Dec 2010 at 4:35