Getting Started with KendoReact StockChart

The KendoReact StockChart is a specialized control for visualizing the price movement of a financial instrument over a certain period of time.

Generally, Stockcharts include extensive touch support and a navigator pane for easy browsing of extended time periods. Generally, the StockChart extends the KendoReact Chart component and shares most of its features.

The KendoReact StockChart component is part of the KendoReact library of React UI components. It is distributed through NPM under the kendo-react-charts package.

The Stockchart Component is part of KendoReact, a professionally built commercial UI library. To try out this Stockchart you need to sign up for a 30-day trial, which gives you access to the full KendoReact library.


Basic Usage

The following example demonstrates the StockChart in action.

Example
View Source
Edit In Stackblitz  
Change Theme:

Functionality and Features

In addition to its individual features, the StockChart supports all configuration options of the Chart.

The StockChart navigator represents a pane that is placed at the bottom of the chart and which can be used to change the date interval in the main panes.

To limit the range that is displayed by the Chart, refer to the article on appearance.

To configure the navigator, use the ChartNavigator component and its child components.

Loading on Demand

To load the main series data for the selected period on demand, use the onNavigatorFilter event. The event object contains the start and end of the selected period. Since the navigator should not be re-rendered when the main series are filtered set the partialRedrawproperty of the StockChart to true.

Example
View Source
Edit In Stackblitz  
Change Theme:

Multiple Panes

Similar to the Chart component, the StockChart supports multiple panes and displays all additional panes above the navigator pane.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?