【发布时间】:2013-01-21 09:38:56
【问题描述】:
我按照Rayenderlich CORE PLOT tutorial for PIE CHART 在iPhone应用程序上实现了一个饼图
http://www.raywenderlich.com/13269/how-to-draw-graphs-with-core-plot-part-1
这里我有一些问题,
我需要在图表上添加另一个数据标签(项目名称),
我尝试实现另一种方法,例如
-(CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)index
在 CorePlot.h(我在应用程序中只找到一次)和我的 viewcontroller 类中的方法定义中,
但额外的数据标签尚未显示。
我需要将图例表移到图表下方而不是图表旁边 我尝试了 frame 和 legendDisplacement 但没有找到结果
【问题讨论】:
标签: iphone objective-c core-plot