Skip to content

Weird issue when restyling bar 'orientation' #358

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

Closed
aleburato opened this issue Mar 25, 2016 · 5 comments
Closed

Weird issue when restyling bar 'orientation' #358

aleburato opened this issue Mar 25, 2016 · 5 comments
Labels
bug something broken

Comments

@aleburato
Copy link
Contributor

If you restyle a bar plot and specify its orientation while restyling, the plot becomes empty, even if you use the default orientation ("v"). If before restyling you already specified the orientation (in newPlot), the issue won't occur.

See:

http://codepen.io/aleburato/pen/LNLExv?editors=0010

@mdtusz
Copy link
Contributor

mdtusz commented Mar 25, 2016

Thanks for reporting this - confirmed as a bug.

@mdtusz mdtusz added the bug something broken label Mar 25, 2016
@etpinard etpinard changed the title Weird issue on plot type switching Weird issue when restyling bar 'orientation' Mar 30, 2016
@etpinard
Copy link
Contributor

cc @alexcjohnson and #1999

@PPPW
Copy link

PPPW commented Sep 14, 2017

In the example, the bar's orientation is vertical, it seems I can't change it to horizontal:

Plotly.restyle('myDiv', 'orientation', 'h');

The above doesn't work. Is there any way to flip x/y for bar (and stacked bar) plot? Thanks!

@PPPW
Copy link

PPPW commented Sep 20, 2017

Dear @alexcjohnson ,
Thanks for your reply! It seems now it won't look weird, I guess that's why this issue is closed, but I still don't know how to flip x/y for bar (and stacked bar) plot, e.g.:

https://codepen.io/anon/pen/gGMrrx?editors=0010

Restyling to 'v' or 'h' does nothing.
Is there any way to flip x/y for bar (and stacked bar) plot? Thanks!

@etpinard
Copy link
Contributor

@PPPW the issue is fixed on master, but we haven't made a new release yet nor have we updated the latest CDN link. Please be patient.

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

No branches or pull requests

4 participants