Skip to content
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

Charts: reverse order Y axis values (highest to lowest) #4473

Open
arikfr opened this issue Dec 22, 2019 · 9 comments
Open

Charts: reverse order Y axis values (highest to lowest) #4473

arikfr opened this issue Dec 22, 2019 · 9 comments

Comments

@arikfr
Copy link
Member

arikfr commented Dec 22, 2019

This to support a chart similar to this one: (where 1 is at the top)

image

@arikfr
Copy link
Member Author

arikfr commented Dec 22, 2019

@kravets-levko does Plot.ly support this?

@kravets-levko
Copy link
Collaborator

@arikfr Plotly supports this, but with strange limitations. It has autorange: True | False | 'reversed' config, but it works only for automatic ranges. When min/max or axis type is specified - autorange is ignored.

@arikfr
Copy link
Member Author

arikfr commented Dec 23, 2019

At first I was confused why they coupled those settings, but then I realized: if you set max=0 and min=10, you get this:

image

So it actually makes sense. In its own way :-)

@arikfr
Copy link
Member Author

arikfr commented Dec 23, 2019

Also I just noticed we have a "Reverse Order" button that seems to do nothing. Is it controlling this autorange setting or it's something else?

@kravets-levko
Copy link
Collaborator

@arikfr Currently "Reverse Order" (for X axis) is implemented on our own, so it works when X axis type is not "Auto" (at least, it should work this way)

@kravets-levko
Copy link
Collaborator

but then I realized: if you set max=0 and min=10, you get this:

But if you don't set min or max, it gets broken (compare settings and results):

image
image
image

So even if it makes some sense - it does not cover all settings combinations 🙂

@kravets-levko
Copy link
Collaborator

Update about "Reverse Order" for X axis: it works only when type is explicitly set to "Category" - this feature was introduced in #2080

@arikfr
Copy link
Member Author

arikfr commented Dec 23, 2019

@arikfr Currently "Reverse Order" (for X axis) is implemented on our own, so it works when X axis type is not "Auto" (at least, it should work this way)

I was referring to the setting for Y Axis.

@kravets-levko
Copy link
Collaborator

Ah. That setting works only for Heatmap charts and should be hidden for other types. This is already fixed in React version of chart editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants