Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add dates to line chart? #2136

Closed
LukeSmith16 opened this issue Feb 3, 2017 · 2 comments
Closed

How to add dates to line chart? #2136

LukeSmith16 opened this issue Feb 3, 2017 · 2 comments

Comments

@LukeSmith16
Copy link

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.

@elchris78
Copy link

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

@liuxuan30
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants