vue3-gauge-chart
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

vue3-gauge-chart ⏲

npm version npm downloads License

⏲ Vue 3 wrapper around gauge-chart

Install

# Using npm
npm install vue3-gauge-chart

# Using yarn
yarn add vue3-gauge-chart

Usage

<script setup lang="ts">
import { GaugeMeter, GaugeMeterOptions } from "vue3-gauge-chart";

const options: GaugeMeterOptions = {
  areaWidth: 600,
  hasNeedle: true,
  needleColor: "black",
  arcColors: ["rgb(255, 84, 84)", "rgb(239, 214, 19)", "rgb(61, 204, 91)"],
  arcDelimiters: [40, 60],
  rangeLabel: ["50", "300"],
  needleStartValue: 100,
  centralLabel: "Bar",
  needleValue: 100,
};
</script>

<template>
  <div>
    <GaugeMeter :options="options" />
  </div>
</template>

License

Published under MIT - Made with ❤️ by Conner Bachmann

Package Sidebar

Install

npm i vue3-gauge-chart

Weekly Downloads

5

Version

0.0.2

License

MIT

Unpacked Size

267 kB

Total Files

15

Last publish

Collaborators

  • intevel