Skip to content

Legend scroll not showing on layout.legend.orientation = 'h' #766

Description

@psalmody

When using layout.legend.orientation.h and have more than a few legend items, they don't appear to scroll.

JSON code generated by ggplotly() from R but simplified. See jsfiddle

Activity

  1. n-riesco commented on Jul 22, 2016

    @n-riesco
    Contributor

    At the time, I implemented horizontal legends, there were no plans for horizontal scroll bars.

    As a workaround, the traces could be grouped. See the following example:

    https://github.com/plotly/plotly.js/blob/master/test/image/mocks/legend_horizontal_groups.json

  2. etpinard commented on Jul 22, 2016

    @etpinard
    Contributor

    @psalmody as @n-riesco pointed, this is the intended behavior you can look at PR #535 starting from #535 (comment) for the rationale.

    Bookkeeping duties imply closing this issue. But thanks for your interest for plotly.js 🍻

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions