iphone - Core Plot - set zoom level to show only part of graph -


i'm having plot:

coreplot 1

every tick on x-axis represents day in calendar. can see, date hard read set the zoom level show 7 days instead of 11 (like right now). please see screenshot below:

enter image description here

but it's important have more data available, users can scroll left , there still dates shown.

how that?

thanks in advance.

you need set xrange , globallxrange properties work.

plotspace.xrange = [cpplotrange                      plotrangewithlocation:cpdecimalfromfloat(0.0)                      length:cpdecimalfromunsignedinteger(10)];  [plotspace setglobalxrange:[cptplotrange                      plotrangewithlocation:cptdecimalfromfloat(0.0)                      length:cpdecimalfromunsignedinteger(50)]]; 

pass location , length values correctly.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -