문제

So right now I am graphing the colors of my bar with a

self.helloPlot = [CPTBarPlot tubularBarPlotWithColor:[CPTColor colorWithComponentRed:79.0f/255.0f green:178.0f/255.0f blue:204.0f/255.0f alpha:1.0f] horizontalBars:YES];
self.helloPlot.identifier = TickerSymbolHELLO;

My goal is too not have the gradient but the "tubularBarPlotWithColor" has gradient. I need help on displaying it without the shadows or gradient from using "tubularBarPlotWithColor"

Thank you

도움이 되었습니까?

해결책

+tubularBarPlotWithColor: is a short cut to create bars with a gradient fill. If you don't want the gradient, set the fill to a solid color.

self.helloPlot.fill = [[CPTFill fillWithColor:[CPTColor redColor]];
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top