-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Strings for Labels in Swift 3 #1732
Comments
I just successfully converted a couple LineChartView charts to Charts 3.0. Here's what I did, I think it should help: Before I was building arrays of xVals ( With Charts 3.0, first thing you have to do is assign your axes to have a
Okay, what do we put in those comments? Whatever you were putting as strings for the values, you're going to have to keep some sort of array of strings, or dictionary of doubles to strings, or calculate the string in that method. I'll explain further. When you are building your In your
As you can see, we just have to access the string values in a different place. I had to to play with my chart axes' Hope that helps! Sorry it's not written in Swift, but it should be simple enough to figure out. |
thanks @nickjwallin seems I can close it. Feel free to reopen if not resolved |
Below is my code. I am trying to figure out how to have the value from the array "Labels" appear at the bottom of the table. I have values down there, just not what I want.
The old version had a value called xVals or xValues.
I cannot get the thing to build when adding xVals or trying to give the x any value other than a double.
The dev environment won't allow me to insert anything but doubles.
` func displayRankingBars(){
//ok I need to mkae a ["string", [int, int]]
The text was updated successfully, but these errors were encountered: