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

Problem with textAnchor? #3

Closed
jazzido opened this issue Feb 8, 2016 · 2 comments
Closed

Problem with textAnchor? #3

jazzido opened this issue Feb 8, 2016 · 2 comments

Comments

@jazzido
Copy link

jazzido commented Feb 8, 2016

Yo @davelandry,

I finally got around to playing with this (awesome work!). I'm trying to add labels to a treemap, but can't get right and left text anchors to work right. Here's what I get for textAnchor('left'):

screen shot 2016-02-08 at 1 29 32 pm

middle, OTOH, seems to work OK:

screen shot 2016-02-08 at 1 29 14 pm

Here's a CodePen that I built for demoing the issue (scroll all the way to the bottom of the JS, there's a huge blob of data at the top)

Thanks!

@jazzido
Copy link
Author

jazzido commented Feb 9, 2016

Nevermind, I misread the docs. Works perfectly, as the docs clearly state :), with textAnchor('start').

@jazzido jazzido closed this as completed Feb 9, 2016
@davelandry
Copy link
Member

👍

I'm trying to keep as close to the SVG standard as I can, so it makes things like this a little confusing.

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

No branches or pull requests

2 participants