Abstract out donutChart