jeudi 4 août 2016

how to explicitly draw svg viewbox coordinates

I have an svg viewbox element to draw waveform as follows:

<svg id="waveform" viewBox="0 -1 2000 2" preserveAspectRatio="none">
  <g id="waveform">
    <path id="waveform1" d=""/>
  </g>
</svg>

It plots the waveform as expected. However it doesn't give me the x and y label of the viewbox, is there any alternate way by which we can add the x and y label of viewbox on webpage?




Aucun commentaire:

Enregistrer un commentaire