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

Shunshine07 picture Shunshine07  路  3Comments

anhltse03448 picture anhltse03448  路  3Comments

valeIT picture valeIT  路  3Comments

PrashantKT picture PrashantKT  路  3Comments

deepumukundan picture deepumukundan  路  3Comments