This question is locked. New answers and comments are not allowed.
I have a RadCartesianChart called chart6Mo. I set the zoom whenever data is loaded.
The following code is inside the SizeChanged event for the chart:
double chartWidth = chart6Mo.PlotAreaClip.Width;
if (chartWidth > 0)
{
double fullChartSize = chartWidth * chart6Mo.Zoom.Width;
chart6Mo.PanOffset = new Point(-(fullChartSize - chartWidth), 1.0); // Pan to right
}
This code works most of the time, but sometimes (depending on how many data points there are) it does not pan all the way to the right. Instead, it pans about 100 pixels short of the rightmost point. I've tried hard-coding many different zoom values to no avail. I've also tried setting the pan X value to a very large negative number, but it seems to be ignored when I set it in code, to a number larger than the entire width of the chart. Can you think of any reason why the above code would not pan all the way to the right?