円グラフを含むアプリケーションを開発しています。円グラフの作成に使用する値を中央の対応エリアに表示したい。
このコードを使用して PieChart を描画しています。
CGContextSetRGBFillColor(ctx, 0.52, 0.63, 0.31, 1.0);
CGContextMoveToPoint(ctx, posX, posY);
CGContextAddArc(ctx, posX, posY, r,(startDeg)*M_PI/180.0, (endDeg)*M_PI/180.0, 0);
CGContextClosePath(ctx);
CGContextFillPath(ctx);
円グラフの上にラベルを追加できますが、ラベルを領域の中央に配置できません。