Caution
Deprecated / Unmaintained. This project is no longer maintained and the GitHub repository has been archived. The npm package has been deprecated.
- Last release: v1.2.1 (June 2017).
- Targets React 15 and uses lifecycle methods (
componentWillReceiveProps) that were removed/renamed in React 17 — it will not work cleanly on modern React. - The upstream
canvas-gaugeslibrary itself has been inactive since 2020.
Recommended alternatives:
react-gauge-component— actively maintained SVG-based gauges.@mui/x-chartsGauge — gauge component from MUI X.- KendoReact Gauges — commercial, enterprise-grade.
Thanks to everyone who used and contributed to this project over the years.
Canvas gauges component is based on canvas-gauges for React.
npm install react-canvas-gauges --save
<RadialGauge
units='°C'
title='Temperature'
value={this.state.temperature}
minValue={0}
maxValue={50}
majorTicks={['0', '5', '15', '20', '25', '30', '35', '40', '45', '50']}
minorTicks={2}
></RadialGauge>