i want draw a pie, but the number of pieces is dynamic, 2 pieces or 3 or 4.
the pie sample below can't work out . is there any way that i can put arrays in data and labels?
Thank you
...
graph = Flotr.draw(container, [{
data: d1,
label: 'lable1'
}, {
data: d2,
label: 'label2'
}, {
data: dN, // the END is Dynamic, how can i handle this?
label: ....
},
i want draw a pie, but the number of pieces is dynamic, 2 pieces or 3 or 4. the pie sample below can't work out . is there any way that i can put arrays in data and labels? Thank you
... graph = Flotr.draw(container, [{ data: d1, label: 'lable1' }, { data: d2, label: 'label2' }, { data: dN, // the END is Dynamic, how can i handle this? label: .... },