Skip to content

Draw multiple legends on a graph#6535

Merged
archmoj merged 15 commits into
masterfrom
multiple-legends
Apr 24, 2023
Merged

Draw multiple legends on a graph#6535
archmoj merged 15 commits into
masterfrom
multiple-legends

Conversation

@archmoj

@archmoj archmoj commented Mar 21, 2023

Copy link
Copy Markdown
Contributor

Resolves #5098.

@plotly/plotly_js

@nicolaskruchten

Copy link
Copy Markdown
Contributor

wow now THIS is an exciting PR

Comment thread draftlogs/6535_add.md Outdated
Co-authored-by: Liam Connors <liam@plot.ly>
Comment thread src/components/legend/defaults.js Outdated
Comment thread src/components/legend/draw.js
Comment thread src/components/legend/draw.js

@alexcjohnson alexcjohnson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 Excellent!

@archmoj
archmoj merged commit 3f533b2 into master Apr 24, 2023
@archmoj
archmoj deleted the multiple-legends branch April 24, 2023 19:58
@etpinard

Copy link
Copy Markdown
Contributor

OMG - great feature 🎉

@rushi-jariwala

Copy link
Copy Markdown

Can you let us know how to add multiple legends? I cannot find any documentation related to this. A simple example would help.

@rushi-jariwala

Copy link
Copy Markdown

Can you let us know how to add multiple legends? I cannot find any documentation related to this. A simple example would help.

I found it. Its in adding multiple legends on this page: https://plotly.com/python/legend/

@claireramming

claireramming commented Apr 11, 2024

Copy link
Copy Markdown

I only see documentation in the python docs, can we get updated docs for plotly.com/javascript/legend? It was tricky to set this up based on just the python example.

@jendrikw

Copy link
Copy Markdown

Yes please add more documentation to the javascript version. python has a documented yref = "y2" etc, but the javascript docs only have "paper" and "container" :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature something new

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple legends: trace.legend and layout.legend<N>

8 participants