Axis tranform and axis scale factor seems to be wrong

Jul 30, 2014 at 4:36 PM
Hi everybody,

See the screenshot

According to this picture, you can see that the gradient shifts a little on the right. It's because the transform method seems to be not only based on the plot area rectangle but also on the plot area width plus the Y labels width.

The code :

.
var screenPoint = xAxis.Transform(dataPoint.X, dataPoint.Y, this.yAxis);
return new Point(screenPoint.X, screenPoint.Y);
.

So, each time I use transform, the scale shifts again and again the real coords.

Have you already met this problem or can you help me solving this issue.

Thanks a lot.