X-axis axis label position offset

I am trying to move the X axis labels up. Is there a property that I can do for this? I tried to add a bottom padding to the frame of the graph, but all it does is squeeze the entire graph up.

+5
source share
3 answers

Another question, the answer to "Stack Overflow", made me change the "Orthogonal Coordinate Decimal". For instance:

    axisSet.xAxis.orthogonalCoordinateDecimal = CPTDecimalFromString(@"0") 

This made my X axis go through the origin. To raise my X axis relative to my graph, I changed the value to "25000", as in:

    axisSet.xAxis.orthogonalCoordinateDecimal = CPTDecimalFromString(@"25000")

, , - . 0 185 000, 25 000 4, 30 (, , ). 0-185 000 5,0 , , .

+5

, , - axisSet.xAxis.labelOffset

+2

This is not entirely clear, perhaps you need it

x.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0];

Or to display labels over an axis you can use this:

x.tickDirection = CPTSignPositive;
+1
source

All Articles