This sample demonstrates the AAPL stock price using the DateTimeCategory
axis type in the stock chart to display the minimum number of labels without any overlap on various business days.
In this example, you can see how to render and configure a stock chart to visualize stock data using the DateTimeCategory
axis type. Use series type as Spline
to render a spline series.
Tooltip
is enabled in this example. To see the tooltip in action, hover the chart or tap on it in touch enabled devices.
More information about axis types can be found in this documentation section.
Injecting Module
The stock chart component features are segregated into individual feature-wise modules. To use datetime category axis, inject the DateTimeCategory
module using the StockChart.Inject(DateTimeCategory)
method. To use the SplineSeries, inject the SplineSeries
module using the StockChart.Inject(SplineSeries)
method.