d3-geo icon indicating copy to clipboard operation
d3-geo copied to clipboard

d3.geoPath as textPath: flip text

Open janwillemtulp opened this issue 6 years ago • 2 comments

Hi,

I am currently linking to a d3.geoPath from my textPath element (using xlink:href("#my-geo-path"), which works perfectly fine. However, I am animating the d3.geoPath, and in some situations I end up with the text up side down, and I want to flip the text in these situations so that it is easier to read. The side attribute for a textPath only works in FireFox as it seems. So, would there be another way to flip text in these situations?

Thanks!

janwillemtulp avatar Aug 28 '19 20:08 janwillemtulp

Hello, can you maybe share a minimal live example (a block or an observable notebook) reproducing the issue?

Fil avatar Aug 29 '19 08:08 Fil

If you can’t do this with SVG attributes then I think you might need to reverse the path.

mbostock avatar Aug 29 '19 13:08 mbostock