npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-advanced-speedometer-pro

v2.0.3

Published

A high-quality, advanced Vue 3 speedometer/gauge chart component with multiple gauge types, themes, animations, and a rich developer API.

Downloads

438

Readme

Vue Advanced Speedometer ⚡

A high-quality Vue 3 speedometer / gauge chart component built with SVG.
Smooth animations, customizable themes, and flexible API make it ideal for dashboards, admin panels, IoT monitors, and analytics apps.

GitHub Repository:
https://github.com/Navnit73/vue-speedometer-gauge-chart

Docs:
https://vue-speedometer-gauge-chart.vercel.app/docs

Vue TypeScript Size


✨ Features

  • 3 Gauge Types — full circle, semi circle, quarter gauge
  • 5 Built-in Themes — light, dark, material, minimal, neon
  • Gradient arcs with multiple color stops
  • Custom colored segments (safe / warning / danger zones)
  • Smooth 60 FPS animations using requestAnimationFrame
  • Custom center slot for HTML or Vue components
  • Alert thresholds with pulse effect
  • Export as PNG, SVG, or PDF
  • Developer API methods
  • Responsive with ResizeObserver
  • Tree-shakable imports
  • Full TypeScript support

📦 Installation

npm install vue-advanced-speedometer

🚀 Quick Start

Global Registration

import { createApp } from 'vue'
import VueAdvancedSpeedometer from 'vue-advanced-speedometer'
import 'vue-advanced-speedometer/dist/style.css'

const app = createApp(App)

app.use(VueAdvancedSpeedometer)

app.mount('#app')

Local Import

<script setup>
import { VueSpeedometer } from 'vue-advanced-speedometer'
import 'vue-advanced-speedometer/dist/style.css'
</script>

<template>
  <VueSpeedometer :value="75" :max="180" />
</template>

📖 Props API

| Prop | Type | Default | Description | |-----|-----|-----|-----| | value | number | 0 | Current gauge value | | min | number | 0 | Minimum value | | max | number | 100 | Maximum value | | type | string | semi | Gauge type: full, semi, quarter | | segments | Segment[] | [] | Custom colored arc segments | | gradient | string[] | [] | Gradient colors | | needleColor | string | theme default | Needle color | | needleWidth | number | 3 | Needle width | | showTicks | boolean | true | Display tick marks | | majorTicks | number | 5 | Major tick divisions | | minorTicks | number | 4 | Minor ticks per major | | showLabels | boolean | true | Show value labels | | animationDuration | number | 800 | Animation time in ms | | easing | string | easeOutCubic | Animation easing | | theme | string | light | Built-in theme | | customTheme | object | {} | Custom theme override | | alerts | AlertThreshold[] | [] | Alert thresholds | | arcWidth | number | 20 | Arc thickness | | width | number or string | 100% | Container width | | height | number or string | auto | Container height | | formatValue | function | — | Custom value formatter |


Types

interface Segment {
  from: number
  to: number
  color: string
}

interface AlertThreshold {
  value: number
  color: string
}

Events

| Event | Payload | Description | |------|------|------| | value-change | { value, oldValue } | Fired when value changes | | segment-enter | { segment, index } | Needle enters segment | | segment-leave | { segment, index } | Needle leaves segment | | animation-end | { value } | Animation finished |


Slots

| Slot | Props | Description | |-----|-----|-----| | center | { value, percentage } | Custom center content |


Exposed Methods

Access using template ref.

<script setup>
import { ref } from 'vue'
import { VueSpeedometer } from 'vue-advanced-speedometer'

const gaugeRef = ref()

gaugeRef.value.setValue(50)
gaugeRef.value.animateTo(80, 1200)
gaugeRef.value.reset()
gaugeRef.value.exportAs('png')
</script>

<template>
  <VueSpeedometer ref="gaugeRef" :value="50" />
</template>

Supported export formats

png
svg
pdf

🎨 Examples

Gauge Types

<VueSpeedometer :value="75" type="semi" />
<VueSpeedometer :value="75" type="full" />
<VueSpeedometer :value="75" type="quarter" />

Themes

<VueSpeedometer :value="75" theme="dark" />
<VueSpeedometer :value="75" theme="neon" />
<VueSpeedometer :value="75" theme="material" />

Gradient Arc

<VueSpeedometer
  :value="75"
  :gradient="['#00ff88','#ffee00','#ff3300']"
/>

Custom Segments

<VueSpeedometer
  :value="75"
  :max="180"
  :segments="[
    { from: 0, to: 60, color: '#22c55e' },
    { from: 60, to: 120, color: '#eab308' },
    { from: 120, to: 180, color: '#ef4444' }
  ]"
/>

🏗 Development

Install dependencies

npm install

Start development server

npm run dev

Build library

npm run build

❤️ Support & Sponsorship

If you sponsor then I feel happy 😊


📄 License

This project is free and open-source under the MIT License.

See LICENSE.md for full details.