2012-02-28 36 views

回答

4

執行-barFillForBarPlot:recordIndex:數據源方法。對於每個索引,檢查與給定索引關聯的數據值並返回所需的填充。

1

你只是應該做這樣的事情:

-(CPTFill *)barFillForBarPlot:(CPTBarPlot *)barPlot recordIndex:(NSUInteger)idx { 

    return [CPTFill fillWithColor:[CPTColor colorWithComponentRed:147./255. green:200./255. blue:1. alpha:0.5]]; 
} 
相關問題