Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

d3.geoPath as textPath: flip text #172

Open
janwillemtulp opened this issue Aug 28, 2019 · 2 comments
Open

d3.geoPath as textPath: flip text #172

janwillemtulp opened this issue Aug 28, 2019 · 2 comments

Comments

@janwillemtulp
Copy link

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!

@Fil
Copy link
Member

Fil commented Aug 29, 2019

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

@mbostock
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants