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

heatmaps don't respect axis categoryarray #1097

Closed
hellochar opened this issue Oct 28, 2016 · 7 comments · Fixed by #3827
Closed

heatmaps don't respect axis categoryarray #1097

hellochar opened this issue Oct 28, 2016 · 7 comments · Fixed by #3827
Labels
bug something broken

Comments

@hellochar
Copy link

hellochar commented Oct 28, 2016

Hey Plotly,

It looks like you can use axis.categoryarray to reorder the bars in a bar chart. I'm trying to do the same thing with heatmaps (that is, reorder the heatmap columns) but it only seems to change the tick labels, not actually move the data. See http://codepen.io/hellochar/pen/WGBEow . This is concerning since the data being displayed is not longer accurate to the data that was fed in.

Is there another way to specify the heatmap ordering, other than by modifying the x/y arrays manually?

@etpinard
Copy link
Contributor

Thank very much for the report.

@etpinard etpinard added the bug something broken label Oct 28, 2016
@etpinard etpinard self-assigned this Nov 2, 2016
@etpinard etpinard added this to the v1.20.0 milestone Nov 2, 2016
@etpinard etpinard removed this from the v1.20.0 milestone Nov 14, 2016
@rcrezende
Copy link

any plans to fix it?

@etpinard
Copy link
Contributor

any plans to fix it?

yes, that's what the type: bug label means.

@antoinerg
Copy link
Contributor

Proof of principle in branch issue-1097

Codepen before: https://codepen.io/antoinerg/pen/bJyOjX
Codepen after: https://codepen.io/antoinerg/pen/EJzGdv

Still need to write test and support multicategory

@etpinard
Copy link
Contributor

etpinard commented May 1, 2019

Looking good @antoinerg - thanks for taking this on!

@antoinerg
Copy link
Contributor

@etpinard About multicategory axes, it seems like categoryorder isn't implemented for it (#3723 (comment)). I will not tackle this here.

@etpinard
Copy link
Contributor

etpinard commented May 1, 2019

About multicategory axes, it seems like categoryorder isn't implemented for it

Yes, that's correct. My bad!

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

Successfully merging a pull request may close this issue.

4 participants