iphone - Core Plot - set zoom level to show only part of graph -
i'm having plot:
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:
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
Post a Comment