Pie chart enhancements + tests, fixes #18076