Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
tickmark position on timeline
posted

Hi, we are using the timeline control to show data for example for the "past 3 years", e.g 06/13/2008 - 06/13/2011. But on the axis we only want to show tickmarks for every full year.

I am using:

DateAxis.UnitType = DateTimeUnitType.Years;
DateAxis.Unit = 1;

 

AutioRange is set to "false" and we explicitly set "Minimum" and "Maximum" for the axis.

And we also format the tickmark label to only show the year.

The problem is that the tickmarks are placed on 06/13/2008, 06/13/2009, 06/13/2010 etc. since the control seems to automatically start the tickmarks at the beginning of the date range, but it only shows "2008", "2009" "2010" at the tickmark due to our label formatting and the UnitType setting.

I want the axis date range to be 06/13/2008 - 06/13/2011, but I want tickmarks on 01/01/2009, 01/01/2010, 01/01/2011 etc.

Is this possible?