iphone - Help needed for s7graphview -


if have used s7graphview plotting graph want know changes in code maintaining incremental value of values been plot on x-axis. maintains according count of array being return it. want maintain incremental gap of 5 units.

i replace in drawrect: of s7graphview class next lines (~220 line in s7graphview.m):

if (xvaluescount > 5) {            nsuinteger stepcount = 5;     nsuinteger count = xvaluescount - 1;      (nsuinteger = 4; < 8; i++) {         if (count % == 0) {             stepcount = i;         }     }      step = xvaluescount / stepcount;     maxstep = stepcount + 1; } else {            step = 1;     maxstep = xvaluescount; } 

with this code:

if (xvaluescount > 5) {            nsuinteger stepcount = 5 - 1;      step = xvaluescount / stepcount;     maxstep = stepcount + 1; } else {            step = 1;     maxstep = xvaluescount; } 

on demos7graphview project s7graph google code page gives me next result: result code changing

hope helps.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -