Closed GoogleCodeExporter closed 9 years ago
Just change the plot range in the CPXYPlotSpace for the x axis. You need to a
do a bit of math. A day is 86000
seconds. Change your range to be some number of minutes or hours (given in
seconds).
Original comment by drewmcco...@mac.com
on 21 May 2010 at 6:47
Original comment by drewmcco...@mac.com
on 21 May 2010 at 6:48
Thanks for replying.
Well
xRange=[CPPlotRange plotRangeWithLocation:CPDecimalFromFloat(min)
length:CPDecimalFromFloat(maxValue-min)];
Here the min & max values are NSTimeInterval.
I had just shown the glimpse that how i get the min & max values.
double min=[XDataValue timeIntervalSinceDate:refDate];
double max=[XDataValue timeIntervalSinceDate:refDate];
here i get the min & max values proper. Now please guide me where I had to make
changes.As min & max are already in seconds
If I change the Xdata values let say
X: 03 May,2010 11:30:23 AM Y:20
X: 03 May,2010 02:12:15 PM Y:22
X: 03 May,2010 05:45:12 PM Y:18
Still the data plot is correct, it turn to hour wise.Without making changes in
the code
Thanks & Regards
Zahur
Original comment by zghotlawala@gmail.com
on 21 May 2010 at 7:20
Original issue reported on code.google.com by
zghotlawala@gmail.com
on 21 May 2010 at 5:30