svg creation html file 


<svg width="60" height="200">
<defs>
<linearGradient id="gradient_3" x1="0%" y1="0%" x2="0%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#2868F1" stop-opacity="1"></stop>
<stop offset="50%" stop-color="white" stop-opacity="1"></stop>
<stop offset="100%" stop-color="#D1D3D7" stop-opacity="1"></stop>
</linearGradient>
</defs>
<g><rect x="0" y="0" width="60" height="100%" fill="url(#gradient_3)"></rect></g>
<g><line x1="0" y1="0" x2="60" y2="0" stroke-width="3" stroke="black"></line></g>
<g><circle radius="10" y="0"/>

</g></svg>

<div class="meter">
<h4 class="meter-title">Humidity</h4><div>
<!-- react-text: 95 -->63.69<!-- /react-text -->
<!-- react-text: 96 --> <!-- /react-text -->
<!-- react-text: 97 -->%<!-- /react-text --></div>
<div class="meter-container">
<svg width="60" height="200">
<defs>
<linearGradient id="gradient_1" x1="0%" y1="0%" x2="0%" y2="100%" spreadMethod="pad">
<stop offset="0%" stop-color="#c00" stop-opacity="1"></stop>
<stop offset="50%" stop-color="yellow" stop-opacity="1"></stop>
<stop offset="100%" stop-color="#0c0" stop-opacity="1"></stop></linearGradient>
</defs>
<g><rect x="0" y="0" width="60" height="100%" fill="url(#gradient_1)"></rect>
</g>
<g><line x1="63.69" y1="200-63.69" x2="0" y2="200-63.69" stroke-width="3" stroke="white"></line></g>
<g><circle cx="30" cy="200-63.62" r="10" fill="white"></circle></g>
</svg></div></div>




Canvas Examples

https://canvas-gauges.com/documentation/examples/

Comments

Popular posts from this blog