-
-
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
Line Chart Issue in CombinedChartView #3268
Comments
I am using constants for the graph axes.
|
I remember the line chart x values should be sorted. Random order will have troubles, as inside it's using XBound or similar thing. I wonder it won't be fixed in a short time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am creating a combination line chart and scatter chart.
The line chart is used to draw a limit outline on the graph and the scatter chart is used to plot the data. I use an array of 8 points to create the line chart.
When I iterate over the entire array, it won't display the line chart.
I had to break the data into 3 ChartDataEntry arrays in order to display the entire line chart.
Consequently I have 3 legend items that I don't know how to get rid of.
Out of curiosity I used the same array as scatter points and they display correctly (see second photo).
In Model:
let longCGLimitsChartWtsArray = [10275.0, 9702.0, 9702.0, 10694.0, 14994.1, 14994.0, 11400.0, 10275.0]
let longCGLimitsChartCGsArray = [196.9, 199.6, 218.0, 220.3, 215.7, 206.2, 196.9, 196.9]
In View Controller:
The text was updated successfully, but these errors were encountered: