2X faster development
The ultimate UWP UI toolkit to boost your development speed.
Description: This article describes how to display the date-time axis label with custom format during the date-time transitions such as Minutes to Day, Days to Month, Months to Year, etc. Solution: This can be achieved by subscribing the LabelCreated event in date-time axis and accessing the AxisLabel argument, which is a type of DateTimeAxisLabel. The following properties of DateTimeAxisLabel are used to apply the format for the labels:
Note: These APIs are available from version 14.2 release. The following code snippet illustrates customization of label format based on interval transition: XAML
C#
The following screenshots illustrate the label format customization based on interval type for date-time axis.
|
2X faster development
The ultimate UWP UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.