How to calculate the screen length of two points?

Oystein Bjorke 4 years ago 0
This discussion was imported from CodePlex

buaashuai wrote at 2014-07-18 11:02:

Help me! I am using WindowsForms. My xAxis is DateTimeAxis, and yAxis is LinearAxis. I have two DataPoint, A and B, I want to calculate the screen length of A and B. In what way can i accomplish this? Thanks.! Image
My problem is like this. http://pan.baidu.com/s/1nt8yEwh

Slxe wrote at 2014-07-18 16:11:

This method in Axis will probably help:
xAxis.Transform(double x, double y, Axis yAxis);
CodePlex