KendoReact Charts Overview
The KendoReact Charts are a set of React components for building common chart types.
The Charts components are part of the KendoReact library which provides native KendoReact components for the React ecosystem and are available under the kendo-react-charts NPM package.
Installation
Download and install the package. Use Node.js v5.0.0 or later.
npm install --save @progress/kendo-react-charts @progress/kendo-drawing @progress/kendo-react-intl hammerjs @progress/kendo-licensing
Once installed, import the package module.
// ES2015 module syntax import { Chart, Sparkline, StockChart } from '@progress/kendo-react-charts';
// CommonJS format const { Chart, Sparkline, StockChart } = require('@progress/kendo-react-charts');
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 Charts 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
- (Required for the Chart events) hammerjs
The following dependencies are automatically installed:
- @progress/kendo-react-popup
- @progress/kendo-react-common
- @progress/kendo-charts
- prop-types