iphone Programming Glossary: cpfill
iPhone : How to change gradient color for negative values in Core Plot? http://stackoverflow.com/questions/5115961/iphone-how-to-change-gradient-color-for-negative-values-in-core-plot ios4 core plot share improve this question Just implement the following method of the CPBarPlotDataSource is OK CPFill barFillForBarPlot CPBarPlot barPlot recordIndex NSUInteger index if barPlot.identifier @ profit id item self.profits objectAtIndex.. id item self.profits objectAtIndex index double profit item objectForKey @ profit doubleValue if profit 0.0 return CPFill fillWithGradient CPGradient gradientWithBeginningColor CPColor redColor endingColor CPColor blackColor return nil Hope..
core plot custom Theme? http://stackoverflow.com/questions/5132253/core-plot-custom-theme areaGradient CPGradient gradientWithBeginningColor areaColor endingColor areaColor areaGradient.angle 90.0f CPFill areaGradientFill CPFill fillWithGradient areaGradient dataSourceLinePlot.areaFill areaGradientFill dataSourceLinePlot.areaBaseValue.. gradientWithBeginningColor areaColor endingColor areaColor areaGradient.angle 90.0f CPFill areaGradientFill CPFill fillWithGradient areaGradient dataSourceLinePlot.areaFill areaGradientFill dataSourceLinePlot.areaBaseValue CPDecimalFromString.. background to graphs CPTheme theme CPTheme themeNamed kCPPlainWhiteTheme graph CPXYGraph theme newGraph graph.fill CPFill fillWithColor CPColor clearColor graph.plotAreaFrame.fill CPFill fillWithColor CPColor clearColor share improve this answer..
|