I'm trying to make an svg grow, as a basic bar chart that is growing from zero to the height of 27.5, e.g. I want it to animate from bottom to top
I tried the following code but it makes the rectangle grow from top to bottom, rather than bottom to top (0 height -> 27.5 height).
<?xml version="1.0" encoding="utf-8"?>
<svg
version="1.1"
id="MAIN"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="0 0 1190.6 841.9"
enable-background="new 0 0 1190.6 841.9"
xml:space="preserve">
<rect
id="barchart1"
x="148.8"
y="190"
fill="#921930"
width="39.8"
height="27.5">
<animate
attributeName="height"
from="0"
to="27.5"
dur="3s"
fill="freeze"/>
</rect>
</svg>