ebeshero / DHClass-Hub

a repository to help introduce and orient students to the GitHub collaboration environment, and to support DH classes.
GNU Affero General Public License v3.0
27 stars 27 forks source link

Rotating Text #730

Closed amberpeddicord closed 4 years ago

amberpeddicord commented 4 years ago

I'm working on the SVG assignment and I'm trying to rotate my text so that I can label the y-axis in my bar graph and have the label go along the line. What I have is this:

<text x="290" y="250" text-anchor="middle" transform="rotate(90)">Areas in Square Miles</text>

When I do this, the text doesn't show up, but when I take out the transform attribute, it does. What am I doing wrong?

amberpeddicord commented 4 years ago

Never mind, I was able to figure it out! I forgot to specify what point I wanted to rotate the text along, so I needed to say transform="rotate (90 290,250)".