I started my svg learning. And I want to do some skills bar with the svg line.
But there is something I didn\'t understand. I create 2 lines per skills (one empty, and o
Short answer: the line is clipped in half by the view box.
When you draw a line on the y="0"
axis, half of the line width is above the axis, and half is below it. Combined with the viewBox
which starts at y=0
, the half of the line that is above will be clipped.
You have three options:
y1="2.5"
, for exampleviewBox="0 -2.5 100 100"
overflow="visible"
to the svg
element