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

Need help in setDrawValues #1391

Closed
SuhailRanger opened this issue Sep 2, 2016 · 3 comments
Closed

Need help in setDrawValues #1391

SuhailRanger opened this issue Sep 2, 2016 · 3 comments

Comments

@SuhailRanger
Copy link

The method [data setDrawValues:YES];
draw values from yValues i want to draw them from xValues like attached image.

Please reply if you have any suggestion or any link that guide me.

image

@liuxuan30
Copy link
Member

liuxuan30 commented Sep 5, 2016

I don't know where you got stuck. Have you tried latest master? There are new formatters to use.
If you are talking about two lines, maybe override drawValues

@SuhailRanger
Copy link
Author

SuhailRanger commented Sep 10, 2016

Let me explain the scenario :

yValues = [2.0, 3.0, 6.0, 7.0]
xValues = ["06/05","07/05","08/05","09/05"]

Now when i use [data setDrawValues:YES];
it is drawing values from yValues like 6.0 i want to draw "06/05" in place of it. :(

@danielgindi
Copy link
Collaborator

The you should use formatters, to convert between the doubles and the dates. A double can represent any value you want. Please look at the demo of Charts 3.0

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