-
-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Cannot add String labels to x axis. #2436
Comments
I have your problem too , |
I just had to solve this issue migrating to version 3.0 as well. Add this to your chart set up function:
Where self.chartXVals() is a function returning an array of the desired x values; in my case date strings. You can also refer to issue 1340 on the iOS repo here |
not works |
It Worked for me. I used XAxisValueFormatter
On Thursday, December 8, 2016 10:40 PM, ghelfer <[email protected]> wrote:
not works—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
You may need to post a code sample for more insight. Especially where you're adding the x values. |
Hey,
In ios we can add labels to x axis using
let data = LineChartData(xVals: ["1","2","3","4","5","6","7","8"], dataSets: [dataSet])
Why cant we add an Entry which takes String as argument instead of float.
Any other alternate except adding label outside view which is not a good practice ?
The text was updated successfully, but these errors were encountered: