viewBox, , , . viewBox - . viewBox , . .
<svg width="100%" height="100%" viewBox="0 0 500 500">
<g id="cartesian" transform="translate(0,500) scale(1,-1)">
<g class="data">
<line x1="0%" y1="75%" x2="50%" y2="40%" ></line>
<line x1="50%" y1="40%" x2="100%" y2="60%"></line>
</g>
</g>
</svg>
, . , , , :
<svg width="100%" height="100%" viewBox="0 0 500 500">
<g id="cartesian" transform="translate(0,500) scale(1,-1)">
<g class="data">
<line x1="0%" y1="75%" x2="50%" y2="40%" ></line>
<line x1="50%" y1="40%" x2="100%" y2="60%"></line>
</g>
<g class="y label">
<text x="0%" y="50%"> 10% </text>
<text x="0%" y="90%"> 20% </text>
</g>
</g>
</svg>
, , .
<svg width="100%" height="100%" viewBox="0 0 500 500">
<g id="cartesian" transform="translate(0,500) scale(1,-1)">
<g class="data">
<line x1="0%" y1="75%" x2="50%" y2="40%" ></line>
<line x1="50%" y1="40%" x2="100%" y2="60%"></line>
</g>
<g class="y label">
<text x="0%" y="50%" font-size="16"
transform="translate(0,500) scale(1,-1)"> 10% </text>
<text x="0%" y="90%" font-size="16"
transform="translate(0,900) scale(1,-1)"> 20% </text>
</g>
</g>
</svg>
, , . <text>, .
, <defs> <use>. , .
<svg width="100%" height="100%" viewBox="0 0 500 500">
<defs>
<text id="label1" font-size="16" transform="scale(1,-1)"> 10% </text>
<text id="label2" font-size="16" transform="scale(1,-1)"> 20% </text>
</defs>
<g id="cartesian" transform="translate(0,500) scale(1,-1)">
<g class="data">
<line x1="0%" y1="75%" x2="50%" y2="40%" ></line>
<line x1="50%" y1="40%" x2="100%" y2="60%"></line>
</g>
<g class="y label">
<use xlink:href="#label1" x="0%" y="50%"/>
<use xlink:href="#label2" x="0%" y="90%"/>
</g>
</g>
</svg>