Arun_
Arun_

Reputation: 1826

how to fix scatter graph size fixed in core plot

I'm using core plot scatter graph,but i'm not able to maintain size of the. For some values the graph works fine ,but for some values the size of the graph changes.

Can i fix it using xRange ,if yes, how?

please refer these images
1.enter image description here
2enter image description here

Why this is happening ?

Upvotes: 0

Views: 353

Answers (1)

Arun_
Arun_

Reputation: 1826

plotSpace.xRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(0) length:CPTDecimalFromFloat([[mXaxisArray valueForKeyPath:@"@max.floatValue"]floatValue])];

Added xRange to fix this issue

Upvotes: 1

Related Questions