0
votes

I have a trouble with Core Plot 1.0 for iOS (Yes, i can't update it now)

  • My datasource return ~365 values for one year.
  • If i draw graph with 30 values is offset from the axis Y, for example: | -line here- |
  • If i draw all the values, then stick to the graph the Y-axis, for example: |-line here-|

How i can add padding to Plot, not Graph or PlotArea ?

1

1 Answers

1
votes

Adjust the xRange of the plot space. The -expandRangeByFactor: method will enlarge the range, keeping the current range centered. If you start with a range that covers the data (e.g., after calling -scaleToFitPlots:), you'll end up with a gap on either side of the data next to edges of the plot area.