Draw pie charts and donut charts with Swift