python-flot-utils icon indicating copy to clipboard operation
python-flot-utils copied to clipboard

Pie chart don't work out of the box

Open frague59 opened this issue 12 years ago • 1 comments

Hi,

Same issue with pie chart : print series_json = [{"data": [{"data": 2, "label": "Bureau"}, {"data": 1, "label": "Atelier"}, {"data": 1, "label": "Commerce"}, {"data": 1, "label": "Stockage"}]}]

but should be : [{"data": 2, "label": "Bureau"}, {"data": 1, "label": "Atelier"}, {"data": 1, "label": "Commerce"}, {"data": 1, "label": "Stockage"}]

I can see a a graph with : var plot = $.plot(placeholder, {{ graph.series_json|safe }}[0]['data'], options);

frague59 avatar Nov 20 '12 16:11 frague59

Thank you for the report. I'm on holiday for a few days and will investigate soon.

unbracketed avatar Nov 22 '12 04:11 unbracketed