Skip to content

Commit

Permalink
Fix #379
Browse files Browse the repository at this point in the history
Percentages in pies now show correct in python2
  • Loading branch information
jarvisteach committed Feb 15, 2018
1 parent d3ce9d3 commit 9b27295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appJar/appjar.py
Expand Up @@ -11611,7 +11611,7 @@ def _drawPie(self, event=None):

# generate a tooltip
if ToolTip is not False:
frac = int(val / sum(self.fracs.values()) * 100)
frac = int(float(val) / sum(self.fracs.values()) * 100)
tip = key + ": " + str(val) + " (" + str(frac) + "%)"
tt = ToolTip(self, tip, delay=500, follow_mouse=1, specId=sliceId)

Expand Down

0 comments on commit 9b27295

Please sign in to comment.