plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

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

Open psalmody opened this issue 10 years ago • 2 comments

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

psalmody avatar Jul 22 '16 00:07 psalmody

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

n-riesco avatar Jul 22 '16 12:07 n-riesco

@psalmody as @n-riesco pointed, this is the intended behavior you can look at PR #535 starting from https://github.com/plotly/plotly.js/pull/535#issuecomment-219509925 for the rationale.

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

etpinard avatar Jul 22 '16 13:07 etpinard