objective c - ShinobiCharts x axis labels folding when zoom out -


im using shinobicharts line type kind ,my x values date strings , y values - longs.

the chars points displayed correctly x values lables shown along whole chart points, , shown on top of each other x labels overlay

this chart initialisation i'm using:

 mainchart = [[shinobichart alloc] initwithframe:frame   withprimaryxaxistype:schartaxistypecategory withprimaryyaxistype:schartaxistypenumber]; 

and how create datapoint:

schartdatapoint* datapoint = [schartdatapoint new];     datapoint.xvalue =key; datapoint.yvalue = value; 

any ideas missing?

you need make x-axis schartdatetimeaxis, not schartcategoryaxis. xvalue needs nsdate, not nsstring. use nsdateformatter datefromstring:

nsdateformatter *dateformatter = [nsdateformatter new]; dateformatter.dateformat = @"dd/mm/yy";  datapoint.xvalue = [dateformatter datefromstring:key]; ... 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -