1.0.1 • Published 5 years ago

short-interval-control-react-gauge-component v1.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

react-gauge-component React UI Component

Animated Gif

When to use this component

Use this when the application needs to display a single axis measurement such as Dig Rate, Truck Load Time.

About this component

This project is intended to publish a react component library project to npm along with an example to github pages.

It has unit test for the component based on this

D3 usage

This component uses D3 to render the gauge.

This page was a helpful reference in creating this component and describes a couple approaches to integrating D3 and React which are in some wasy inconsistent.

This implementation keeps the rendering of the gauge in D3 while React simply established the element which is passed to D3 as a reference

How to use

npm install

To Develop

Develop the component by running the server

npm run start

To Build

This builds the artefact which can be published to npm

npm run build

To Test

This test the components by rendering them can checking generated dom.

npm run test

To Deploy

This deploys the artefact to git hubs page.

npm run deploy