You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.:
Activity
mdtusz commentedon Mar 25, 2016
Thanks for reporting this - confirmed as a bug.
[-]Weird issue on plot type switching[/-][+]Weird issue when restyling bar 'orientation'[/+]etpinard commentedon Sep 13, 2017
cc @alexcjohnson and #1999
PPPW commentedon 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!
fix #358 - restyling orientation
PPPW commentedon 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 commentedon Sep 20, 2017
@PPPW the issue is fixed on
master
, but we haven't made a new release yet nor have we updated thelatest
CDN link. Please be patient.