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

[LineChart] How to Darw "NSString" on xAxis? without Realm.io #1477

Closed
dadigua2333 opened this issue Sep 19, 2016 · 4 comments
Closed

[LineChart] How to Darw "NSString" on xAxis? without Realm.io #1477

dadigua2333 opened this issue Sep 19, 2016 · 4 comments

Comments

@dadigua2333
Copy link

dadigua2333 commented Sep 19, 2016

In the "Charts" old version, I use This API to draw xAxis : ChartDataEntry *entry = [[ChartDataEntry alloc] initWithValue:val xIndex:i];

but, in the new Version, It disappeared! I mean: I only find This API
ChartDataEntry *entry = [[ChartDataEntry alloc] initWithX:11.01 y:35];
Two parameters are of type double !

I try to use Realm.io
But my project loaded in first time, the boss demanded that without the data, the data is added gradually.
Then the Xcode error: Nan
That's to say: when using Realm must be initialized data, this way doesn't work for me

How should I handle? Thank you!

@Huang-Libo
Copy link

Huang-Libo commented Sep 19, 2016

+1
I have the same problem.
My xAxis shows date before, now all have been changed to double value...

another question: What does data parameter used for?

- (nonnull instancetype)initWithX:(double)x y:(double)y data:(id _Nullable)data

@StefanNestorov
Copy link

+1
I also need to show strings on the x axys. I hope it will be possible in the new version.

@danielgindi
Copy link
Collaborator

Duplicate:
#1481

Also please look at the demos, or the migration notes

@dadigua2333
Copy link
Author

dadigua2333 commented Sep 20, 2016

@danielgindi
Thanks for your reply,I also noticed the "formatter"

Then I went back to reference the timeCharts thank you again

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

4 participants