This sample uses spline series to visualize stock data. The tooltip and crosshair display information about the data and period.
This example shows how to render and configure a stock chart to visualize stock data with a last value label using the lastValueLabel
option. A spline series is used by setting the series type to Spline.
Tooltip
is enabled in this example. To see the tooltip in action, hover the chart or tap on it in touch enabled devices.
Injecting Module
The Stock chart component features are segregated into individual feature-wise modules. To use date-time axis, inject the DateTime
module using the
StockChart.Inject(DateTime)
method. To use the SplineSeries, inject the SplineSeries
module using the StockChart.Inject(SplineSeries)
method.
More information about the series type can be found in this documentation section.