krzysu / flot.tooltip

tooltip plugin for wonderful Flot plotting library
https://github.com/krzysu/flot.tooltip
187 stars 153 forks source link

%y not working on pie chart #144

Closed MichaelQuint closed 8 years ago

MichaelQuint commented 8 years ago

Hello,

I cant seem to get %y working on my flot pie chart, it just shows %y. it works fine on my line chart.

krzysu commented 8 years ago

I'm not sure now if %y is supposed to work with pie chart, I don't see that used in the example here https://github.com/krzysu/flot.tooltip/blob/master/examples/pie.html

also in the source code I see:

%p -> percent
%n -> value (not percent) of pie chart

let me know if that solves your problem

MichaelQuint commented 8 years ago

Yes! %n works, sorry about that. The template I am using used %y and since it worked for the line chart I assumed it would be the same. Thanks again!