KendoReact Gauges Overview
The KendoReact Gauges provide a set of React components for building common gauge types.
The Gauges components are part of the KendoReact library which provides native KendoReact components for the React ecosystem and are available under the kendo-react-gauges NPM package.
Basic Usage
The following example demonstrates the Arc, Linear, and Radial Gauges in action.
Installation
Download and install the package. Use Node.js v5.0.0 or later.
npm install --save @progress/kendo-react-gauges @progress/kendo-drawing @progress/kendo-react-intl @progress/kendo-licensing
Once installed, import the package module.
// ES2015 module syntax import { ArcGauge, LinearGauge, RadialGauge } from '@progress/kendo-react-gauges';
// CommonJS format const { ArcGauge, LinearGauge, RadialGauge } = require('@progress/kendo-react-gauges');
You are required to install one of the KendoReact themes to style your components. For more information on how to add the styles, refer to the article on getting started.
Follow the instructions on the KendoReact My License page to activate your license. You can skip this step if your application already contains a KendoReact license file.
Dependencies
The Gauges package requires you to install the following peer dependencies in your application:
- react 16.8.2*
- react-dom
- @progress/kendo-drawing
- @progress/kendo-licensing
- @progress/kendo-react-intl
The following dependencies are automatically installed:
- @progress/kendo-react-common
- @progress/kendo-charts
- prop-types