Chart for WPF and Silverlight / Chart Features / Time-Series Charts / Showing Data Labels on the First of Each Month
In This Topic
Showing Data Labels on the First of Each Month
In This Topic

To only show the data labels on the first of each month, use the following code:

Visual Basic
Copy Code
c1Chart1.View.AxisX.IsTime = True
c1Chart1.View.AxisX.AnnoFormat = "MMM-dd"
‘ when MajorUnit=31 for time axis chart should
‘ take into account variable number of day in month
‘ and mark the first day of each month
c1Chart1.View.AxisX.MajorUnit = 31

 

C#
Copy Code
c1Chart1.View.AxisX.IsTime = true;
c1Chart1.View.AxisX.AnnoFormat = "MMM-dd";
// when MajorUnit=31 for time axis chart should
// take into account variable number of day in month
// and mark the first day of each month
c1Chart1.View.AxisX.MajorUnit = 31;

 

See Also