Tag: cppiechart

CorePlot:无法更改饼图位置(位移)

我无法改变饼图的位置 (我希望它相对于图例更加左侧,以便图例不覆盖饼图)。 基本上我想把它转移到左侧,让图例显示。 我尝试修改以下属性 (但对饼图位置没有明显的影响): // pieChartGraph is a CPTPieChart object pieChartGraph.graph.position = CGPointMake(-100, 0); // I also tried: pieChart.position = CGPointMake(-100, 0); // and also playing with: pieChart.anchorPoint 这是我得到的,也是我的代码 (顺便说一下,标题不显示): pieChartGraph = [[CPTXYGraph alloc] initWithFrame:self.pieChartgraphHostView.bounds]; self.pieChartgraphHostView.hostedGraph = pieChartGraph; pieChartGraph.plotAreaFrame.masksToBorder = NO; pieChartGraph.axisSet = nil; pieChart.title = @"title"; // <– BTW, the title does not […]