A customizable and animated gauge component built with Svelte, perfect for visualizing progress, performance metrics, or other numerical data.
Experience the Svelte Gauge in action: Try it in the Svelte Playground
Install the package via npm:
npm install svelte-gauge
Import the component and use it in your Svelte application:
<script>
import Gauge from "svelte-gauge";
</script>
<Gauge
value={value}
start={0}
stop={100}
stroke={20}
titles={["One", "Two", "Three"]}
ranges={[
[0, 33],
[34, 66],
[67, 100],
]}
width="300px"
class="custom-gauge"
/>