wildanSawaludin / flot

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

Legend label is not displayed if label is empty string #773

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi flot devs,

I am not sure whether it is a bug or not.
I am using flot to display a piechart.
with a sample dataset as follows:

var data= [
    {data:111, label:"test1"},
    {data:222, label:"test2"},
    {data:333, label:""}
];

The piechart displays 3 of them, however the Legend only displays 2 labels: 
test1 and test2.

I have played around with legend.labelFormatter , but even though my code runs 
"if label is empty then change label value to 'Blank'", the legend label is 
still not displayed.

Please advise

Original issue reported on code.google.com by dothebe...@gmail.com on 19 Feb 2015 at 12:59