Custom component in Victory Label #2488
Replies: 2 comments
-
Rather interesting topic because I am also interested in using third party components from design libraries as custom Label component. Unfortunately, it just doesn't work and it is really sad to look your question without any answers or propositions. |
Beta Was this translation helpful? Give feedback.
-
Victory renders everything inside an SVG tag, so its not possible to render an HTML element directly inside of it. Instead, you would need to use the HTML
Relevant MDN docs: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject |
Beta Was this translation helpful? Give feedback.
-
How to include any third party components from design libraries such as material, Ant, Mantine in place of Victory Label component. I tried the following and it is not rendering
Where my backgroundComponent is a badge from mantine library. Please help
Thanks in Advance
Beta Was this translation helpful? Give feedback.
All reactions