Added convenience function for pie chart