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

Passing STRING values to X-Axis currently the SetDataCount is accepting only INT and Double data types #3407

Closed
1 task done
muddanaraj opened this issue Apr 18, 2018 · 1 comment

Comments

@muddanaraj
Copy link

muddanaraj commented Apr 18, 2018

ℹ Please fill out this template when filing an issue.
All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.

Per our *CONTRIBUTING guidelines, we use GitHub for
bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag ios-charts.

Please remove this line and everything above it before submitting.

What did you do?

ℹ I have tried by creating an extra variable to accept string values @objc open var x1 = String("") in chartdataentry.swift and

@objc public init(x1: String, y: Double)
{
super.init(y: y)

    self.x1 = x1
}

What did you expect to happen?

ℹ The plain strings like "Truck1","23-04-28 12:13:14"..etc needs to be displayed on x-axis.

What happened instead?

ℹThe plain strings like "Truck1","23-04-28 12:13:14"..etc are not displayed.

Charts Environment

Swift version:

Demo Project

ℹ Please link to or upload a project we can download that reproduces the issue.

@liuxuan30
Copy link
Member

well you shouldn't. Just you double and value formatter. And ask on stack overflow next time.

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

2 participants