More Premium Hugo Themes Premium Vue Themes

Vue Speedometer

Vue component library for showing speedometer like gauge using d3

Vue Speedometer

Vue component library for showing speedometer like gauge using d3

Author Avatar Theme by palerdot
Github Stars Github Stars: 63
Last Commit Last Commit: Mar 1, 2024 -
First Commit Created: Jan 5, 2024 -
default image

Overview

vue-speedometer is a Vue component library that allows users to display a speedometer-like gauge using d3. It is compatible with Vue 2 and Vue 3, with separate versions available for each. The library can be installed via Yarn or NPM and provides various configuration options for customization.

Features

  • Value: Accepts a number value that determines the position of the speedometer needle.
  • MinValue: Defines the minimum value of the speedometer scale.
  • MaxValue: Defines the maximum value of the speedometer scale.
  • Segments: Determines the number of segments in the speedometer gauge.
  • MaxSegmentLabels: Limits the number of segment labels displayed on the gauge.
  • ForceRender: Allows users to force a rerender of the entire component when props change.
  • Width: Sets the diameter of the speedometer and the width of the SVG element.
  • Height: Sets the height of the SVG element.

Installation

To install vue-speedometer, you can use either Yarn or NPM.

Yarn:

yarn add vue-speedometer

NPM:

npm install --save vue-speedometer

Summary

vue-speedometer is a Vue component library that provides a customizable speedometer gauge using d3. It offers various configuration options for controlling the appearance and behavior of the gauge. The library can be easily installed via Yarn or NPM and is compatible with both Vue 2 and Vue 3.