Axis tranform and axis scale factor seems to be wrong

Oystein Bjorke 10 років тому 0
This discussion was imported from CodePlex

magikorion wrote at 2014-07-30 17:36:

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.