Reputation: 8810
I am getting a line around each bars in bar chart. How to remove it. I made borderWidth to zero even I am getting line around each bars in bar chart.
Upvotes: 4
Views: 1619
Reputation: 13147
Another way to achieve this effect is to set the outline colour to clear by creating a CPTMutableLineStyle
object, setting its lineColor
to clearColor
, and assigning the CPTMutableLineStyle object to your plot.
For example:
CPTMutableLineStyle *myBorderLineStyle = [CPTMutableLineStyle lineStyle];
myBorderLineStyle.lineColor = [CPTColor clearColor];
myPlot.lineStyle = myBorderLineStyle;
Upvotes: 0
Reputation: 13147
Turn off the borders around bar graph lines by setting the lineStyle
property to nil.
Before setting linestyle=nil
:
After setting linestyle=nil
:
For example:
CPTBarPlot *myBarGraph = [[CPTBarPlot alloc] init];
myBarGraph.lineStyle = nil;
I found this setting in the CorePlot CPTBarPlot class documentation, here.
Upvotes: 7