Here is my code:
ucMain.Axis.X.RangeMax = prop.Default.LastEndDate.Ticks;
ucMain.Axis.X.RangeType = AxisRangeType.Custom;
This does not work on DateTimes and I am unsure why? Nothing shows up on the great.
The addition of RangeMin and RangeMax broke my annotations.I did a lot of investigation and this is what I found:
The RangeMin and RangeMax with the DateTime set as Ticks creates an x axis that is based upon those values. However, when setting the value of the annotations, the underlying X axis starts at a 0 point and goes to whatever RangeMax is less RangeMin. therefore, the ValueX in the annotation must subtract the RangeMin to determine the actual location. I am not sure if I would classify it as a bug but it needs to be documented somewhere.
I am starting that now.
That did it. Thanks.
have you set LineChart.TreatDateTimeAsString = false ?
LineChart
what is the ChartType?