-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Horizontal Legend below the chart #53
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
Comments
@prog8 correct. plotly.js legends don't offer much in terms of customization. You can move the legend using |
Is it planned to make legends more customizable in nearest future? If yes do you know any estimates? |
For anybody wanting to place the legend under the chart, one way to achieve this would be like so:
You can also check out the effects of the x/yanchor and x/y values on https://plot.ly/plot: plot a graph, then change Layout -> Horz Position, Vert Position, Horz anchor, Vert anchor. |
Yes but this doesn't change the legend layout. Legend entries are always one below another. They are never in the same line. |
@n-riesco I'd vote for layout: {
legend : {
orientation: 'h' | 'v'
}
} similar to bar |
⬆️ agreed, but only for the sake of consistency with the existing style. |
Implement `layout.legend.orientation` (closes #53)
I came here after receiving the following message:
I do not usually receive this warning message. In a |
@cpsievert ^^ ? |
Is there any update on this? EDITED: Amazing. It's working as per the above format. |
@marwin1991 Try something like this > |
this helps |
Horizontal legend is not working for me. Is this a bug ? |
When I set the legend to 'h', but it only moves the legend title to the side, the variable legends are still vertically aligned. I couldn't get one below the other. Is this feature working for someone? |
Yes, this works for me: https://codepen.io/nicolaskruchten/pen/JjENwZZ?editors=0010 ... it looks like this: |
Warning: plotly.js does not (yet) support horizontal legend items You can track progress here: plotly/plotly.js#53
I couldn't find any way to configure legend to be placed under the chart in a single line. It would be nice if Plotly makes it possible to move the legend below the chart.
The text was updated successfully, but these errors were encountered: