[BUGFIX] Pie charts: Allow backslashes in function names
[FEATURE] Add tooltip on pie charts that explains what happens when clicking a label
[TASK] Cleanup pie chart code