0.0.41 • Published 1 year ago

components-gauge v0.0.41

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Component Gauge

Simple React Component to create Gauge.

npm bundle size NPM npm npm

Demo: https://components-gauge.vercel.app/

# npm
npm i components-gauge --save

# yarn
yarn add components-gauge

# pnpm
pnpm i components-gauge

Usage

import React, { Component } from "react";
import Gauge from "components-gauge";

export default function App() {
  return (
    <Gauge
      animated: true,
      width: 200,
      height: 200,
      baseStroke: 2,
      filledStroke: 2.5,
      baseColor: "#eee",
      filledColor: "#666",
      textColor: "#000",
      radius: 40,
      showValue: true,
    />
  );
}

Props

PropDefaultDescription
animatedtrueAnimation
width200width of chart 200px
height200height of chart 200px
baseStroke2
filledStroke2.5
baseColor#eee
filledColor#666
textColor#999
radius40
showValuefalse
time10000(10s)
onEndEmptyEvent on end

License

MIT Licensed.

0.0.41

1 year ago

0.0.40

2 years ago

0.0.34

2 years ago

0.0.35

2 years ago

0.0.32

2 years ago

0.0.31

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.2-1

2 years ago

0.0.1-1

2 years ago

0.0.1-0

2 years ago

0.0.1

2 years ago