This sample visualizes the animation in the candle chart when existing data is updated or new data is added.
In this example, you can see how to render and configure a candlestick series to display data that updates every second using the setData
method and adds new data every five seconds using the addPoint
method. The chart demonstrates setting up a crosshair to follow the latest data and adjusting the point color based on the value.
Injecting Module
Chart component features are segregated into individual feature-wise modules. To use the candle series, we need to inject CandleSeries
module into services
.
More information on the candle series can be found in this documentation section.