-
-
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
values from array for x axis on barchart #1331
Comments
@seal62 , You mean the labels for the x axis? You don't set the x-axis label on the BarChartEntryData, you set it on the BarChartData object. See the tutorial at the end of this comment as well as the demo classes in this repo for examples. e.g., Hope this helps, https://www.codebeaulieu.com/96/How-to-create-a-Combined-Bar-and-Line-chart-using-ios-charts |
@jj-12 thank you for the response but I think you are talking about Charts 2.2.5 which allowed you to init the BarChartData with xVals. Charts 3.0 only allows init with dataSet but does not include arguements for xVals
Unfortunately all the tutorials I can find online use the old version of Charts, there doesnt seem to be anything on 3.0 which uses a new method of generating the charts |
Same issue. |
this was answered here - #1340 |
I am using the new version of Charts and can figure out how to take a string value from an array and use it as the x-axis value. Using the examples provided I have the below, which generates a bar chart with these y values but x is just 0, 1, 2, 3 etc.. how do I change that to use the days array values? looking at the BarChartEntry class it only accepts Doubles?
The text was updated successfully, but these errors were encountered: