Socket
Book a DemoInstallSign in
Socket

react-score-indicator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-score-indicator

React component to display a score with a doughnut chart

2.2.1
latest
Source
npmnpm
Version published
Weekly downloads
178
11.95%
Maintainers
1
Weekly downloads
 
Created
Source

React Score Indicator

React component to display a score with a doughnut chart


Demo

Install

npm install --save react-score-indicator

Usage

import React, { Component } from 'react'

import ReactStoreIndicator from 'react-score-indicator'

class Example extends Component {
  render () {
    return (
      <ReactStoreIndicator
        value={30}
        maxValue={100}
      />
    )
  }
}

Props

NameTypeDefaultDescriptionRequired
valuenumberValue of scoreyes
maxValuenumberValue of max total scoreyes
widthnumber200Width of componentno
stepColorsarrayview belowArray with n hex colors corresponding to steps in the chartno
lineWidthnumber5Width of lineno
lineGapnumber5Space between the linesno
fadedOpacitynumber40Opacity percentage of the "disabled" stepsno
styleobject{}Style to customize the component wrapperno
textStyleobject{}Style to customize the score value text inside the chartno

DEFAULT COLOR PALETTE

[
  '#d12000',
  '#ed8d00',
  '#f1bc00',
  '#84c42b',
  '#53b83a',
  '#3da940',
  '#3da940',
  '#3da940',
]

License

MIT © tomma5o

Keywords

pie

FAQs

Package last updated on 12 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.