Use the ArcTo method to draw the single value case. Rename pc (piechart) to dc (donutchart)
(some way of improvement)