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.
Basic Usage
The following example demonstrates the StockChart in action.
Functionality and Features
In addition to its individual features, the StockChart supports all configuration options of the Chart.
Navigator
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 partialRedraw
property of the StockChart to true
.
Multiple Panes
Similar to the Chart component, the StockChart supports multiple panes and displays all additional panes above the navigator pane.