1.0.2 • Published 2 years ago

react-simple-gauges v1.0.2

Weekly downloads
34
License
MIT
Repository
github
Last release
2 years ago

react-simple-gauge

NPM JavaScript Style Guide

Install

npm install --save react-simple-gauges

Usage

import React, { Component } from 'react'

import {SimpleGauge} from 'react-simple-gauges'

class Example extends Component {
  render() {
    return <SimpleGauge percent="75"/>
  }
}

Options

OptiontypeDescriptionExample
percentrequiredPercent of progress in gauge75
coloroptionalColor if not define intervals of colors#FFFFFF, red, rgba(255,243,12,.5)
intervalsoptionalIntervals values for define color, value in [min,max>60,75,101
colorsoptionalArray of colors for intervals values'green','grba(255,255,40,.5)','#d73a49'

License

MIT © kevinjpuscan

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago