Skip to content

Curious question: Is there a specific reason why Legend API is not in the svg space? #1463

Answered by williaster
GasimGasimzada asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @GasimGasimzada 👋 gonna convert this to a discussion since it's not an issue. Good question tho, we decided that HTML was preferred to SVG for @visx/legend, @visx/tooltip, and now an HTML variant of @visx/annotation because laying out text in SVG is realllllly hard. @visx/text abstracts some of the complexities but HTML allows us to leverage things like flexbox or text wrapping for free.

#67 is the OG PR where it was added if you're curious

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@JoeVanGundy
Comment options

@GasimGasimzada
Comment options

Answer selected by GasimGasimzada
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1462 on April 01, 2022 17:34.