Charts: How to add dates to line chart?

Created on 3 Feb 2017  路  2Comments  路  Source: danielgindi/Charts

Hi , i'm fairly new to this api and ios in general; i have looked at the demo's but i still can't figure out how to add date labels to the x axis on my line chart. Just wondering if anyone could point me in the right direction to achieve this. Would be much appreciated, thanks.

Most helpful comment

Just take a look at ChartsDemo, there are already DateValueFormatter example.
Basically, it convert a x value to an string via - (NSString *)stringForValue:(double)value axis:(ChartAxisBase *)axis

All 2 comments

haven't you had any response to this? I'm through the same exact problem and haven't found any response to this.

Just take a look at ChartsDemo, there are already DateValueFormatter example.
Basically, it convert a x value to an string via - (NSString *)stringForValue:(double)value axis:(ChartAxisBase *)axis

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kirti0525 picture kirti0525  路  3Comments

ahmedsafadii picture ahmedsafadii  路  3Comments

coop44483 picture coop44483  路  3Comments

Aungbandlab picture Aungbandlab  路  4Comments

newbiebie picture newbiebie  路  3Comments