Can't get labelFormatter working on pie chart?

12 views
Skip to first unread message

andig

unread,
Feb 7, 2010, 7:59:35 AM2/7/10
to Flotr Javascript Plotting Library
I'm using the current CVS version and am trying something like this:
var f = Flotr.draw($('chart_genres'), [ ..data..
], { ...
pie: {show: true},
labelFormatter:
function (slice) {
return (slice.name);
}, ...

For some reason however the labelFormatter is never executed, chart
still shows percentages.

Any idea what I'm doing wrong?

Best,
Andi

Reply all
Reply to author
Forward
0 new messages