How to remove the line border for each column in a histogram using the main graph?

I get a row around each column in the histogram. How to remove it. I made borderWidth equal to zero, even I get a line around each column in the histogram.

+4
source share
2 answers

Turn off the borders around the histogram lines by setting the lineStyle property to nil.

Before setting linestyle=nil :

Before linestyle equals nil

After setting linestyle=nil :

After linestyle equals nil

For instance:

 CPTBarPlot *myBarGraph = [[CPTBarPlot alloc] init]; myBarGraph.lineStyle = nil; 

I found this parameter in the CorePlot CPTBarPlot class documentation, here .

+7
source

Another way to achieve this effect is to set the outline color for cleaning by creating a CPTMutableLineStyle object, setting its lineColor to clearColor and assigning a CPTMutableLineStyle object to your graph.

For instance:

 CPTMutableLineStyle *myBorderLineStyle = [CPTMutableLineStyle lineStyle]; myBorderLineStyle.lineColor = [CPTColor clearColor]; myPlot.lineStyle = myBorderLineStyle; 
0
source

Source: https://habr.com/ru/post/1379461/


All Articles