2
我正在嘗試創建簡單的純色條形圖,並且正在使用Core Plot。 所有我能找到的是tubularBarPlotWithColor方法:實體與漸變條紋顏色
+(CPTBarPlot *)tubularBarPlotWithColor:(CPTColor *)color horizontalBars:(BOOL)horizontal;
是否有一個相當於「flatBarPlotWithColor」(無梯度)方法?
...我只是通過一個實例化的方法,找到了答案:
plot.fill = [CPTFill fillWithColor:[CPTColor greenColor]];
不過,這將是很好,有一個簡單的類方法來處理這個問題。
Ric。
我相信我有答案: plot.fill = [CPTFill fillWithColor:[CPTColor greenColor]]; – 2012-07-23 17:38:35