Curious question: Is there a specific reason why Legend API is not in the svg space? #1463
-
All the charts are in SVG space and legend shapes are already rendered in SVG space. I am curious why the rest of the Legend components are not compatible with it or don't have an option to use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
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 #67 is the OG PR where it was added if you're curious |
Beta Was this translation helpful? Give feedback.
-
Thank you for the information! |
Beta Was this translation helpful? Give feedback.
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