-
Hi, I want to add country flags alongside the y-axis labels, but I’ve run into a couple of issues. I’m using React, and I have access to a library of flags in SVG format. However, it seems like the y-axis labels in the data array only accept strings, not SVG elements or React components. I’ve also tried using emoji flags (e.g., 🇧🇷 using this method: Emojipedia), but the flags don’t render correctly.
What would be the best way to include SVG flags in the y-axis labels? Is there a workaround for this limitation? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Using emojis should work:
But I agree it could be nice to accept a SVG node as the output of the tickFormat function. |
Beta Was this translation helpful? Give feedback.
Using emojis should work:
But I agree it could be nice to accept a SVG node as the output of the tickFormat function.