-
-
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
Linechart inverted #2490
Comments
try /// flag that indicates if the axis is inverted or not
open var inverted = false |
Thnx for your time and suggestion but that inverts values of left / right axis. Its like ascending-desending the values of y-axis. But i need to invert axis. Means x axis to y-axis. Are you getting it? |
OK I see. y axis and x axis are flexible enough to switch in your case. As long as you know the (x, y) then you can draw your chart and format your x/y axis labels. It should be done by you. Meaning you write code to make the library's y axis looks like your x axis. |
please see the result by changed chart.inverted |
I want to create line chart with inverted axis, like this
For this i have tried following
linechart.leftAxis.enabled = false
linechart.xAxis.labelPosition = .bottom
linechart.rightAxis.axisMinimum = -100
But i am not getting output as expected...my output is as below
Basically i want to flip x and y axis.
The text was updated successfully, but these errors were encountered: