I am using below code snippet but not getting end date on xaxis.[Please refer attached screen print.]
I need to show end date irrespective of (Odd/Even)number points. Can you please suggest how to achieve this.
public DateTimeContinuousAxis SetTimeInterval(DateTimeContinuousAxis xAxis, int dateCount)
{
var range = xAxis.Maximum - xAxis.Minimum;
double lbs = System.Math.Ceiling(range.TotalDays / 10);
if (lbs > 0 && range.TotalDays / lbs > 5)
{
xAxis.MajorStepUnit = TimeInterval.Day;
xAxis.LabelInterval = 3;//(int)Math.Round(lbs);
xAxis.LastLabelVisibility = Telerik.Charting.AxisLastLabelVisibility.Visible;
xAxis.MajorStep = range.TotalDays;
}
return xAxis;
}