Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以更改 CPTGraphHostingView 内的 CPTPieChart 框架????
不是直接的,但您可以控制绘图区域中的饼图大小和位置(如果所有填充都为 0,则与托管视图的大小相同)。使用该centerAnchor属性定位饼图的中心。锚点的 x 和 y 坐标作为绘图区域大小的一部分给出。默认值 (0.5, 0.5) 是绘图区域的中间。pieRadius是饼图的半径,以像素为单位。
centerAnchor
pieRadius