This sample shows the date-time category axis with sample data about the sales of a product on different business days.
The date-time category axis is used to display date-time values with nonlinear intervals. For example, business days alone can be depicted here in a week. To use a date-time category axis, set the ValueType
in axis to DateTimeCategory.
Tooltip is enabled in this example. To see the tooltip in action, hover a point or tap a point in touch enabled devices.
Injecting Module
Chart component features are segregated into individual feature-wise modules. For datetime category axis, you should inject
DateTimeCategory
module by using
Chart.Inject(DateTimeCategory)
method.
More information on the date time category can be found in this documentation section.