Using core plot for iPhone, drawing date on x axis

Posted by xmax on Stack Overflow See other posts from Stack Overflow or by xmax
Published on 2010-06-08T14:46:10Z Indexed on 2010/06/09 2:32 UTC
Read the original article Hit count: 374

I have available an array of dictionary that contains NSDate and NSNumber values. I wanted to plot date on X axis. for plotting I need to supply xRanges to plot with some decimal values.I don't understand how can i supply NSdate values to xRange (low and length).

And what should be there in this method:

-(NSNumber *)numberForPlot:(CPPlot *)plot field:(NSUInteger)fieldEnum recordIndex:(NSUInteger)index

I mean how my date value will be returned as NSNumber..? I think i should use some interval over there.but what should be the exact conversion..? can any one explain me what are the exact requirement to plot the date on xAxis..?

I am plotting my plot in half of the view.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about core