Skip to content

Weird issue when restyling bar 'orientation' #358

@aleburato

Description

@aleburato
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

Activity

mdtusz

mdtusz commented on Mar 25, 2016

@mdtusz
Contributor

Thanks for reporting this - confirmed as a bug.

changed the title [-]Weird issue on plot type switching[/-] [+]Weird issue when restyling bar 'orientation'[/+] on Mar 30, 2016
etpinard

etpinard commented on Sep 13, 2017

@etpinard
Contributor
PPPW

PPPW commented on Sep 14, 2017

@PPPW

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!

added a commit that references this issue on Sep 20, 2017
a107466
PPPW

PPPW commented on Sep 20, 2017

@PPPW

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

etpinard commented on Sep 20, 2017

@etpinard
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mdtusz@etpinard@PPPW@aleburato

        Issue actions

          Weird issue when restyling bar 'orientation' · Issue #358 · plotly/plotly.js