Generalized pie chart.
Deleted garbage
Improved chart security