Hello,
I try to get the corresponding value from a Point but the result of the ConvertPhysicalUnitsToData is not correct.
This was my first attempt:
The startX variable is not correct. Now if I substract 50 to XValue I got the correct value.
50 is the gap between the left side of the RadChart and the beginning of the chart area. If I add a Title on the AxisY, I must substract 81 ...
Why ConvertPhysicalUnitsToData doesn't return the right value?
Regards,
Adrien Pellegrini.
I try to get the corresponding value from a Point but the result of the ConvertPhysicalUnitsToData is not correct.
This was my first attempt:
Double startX = chart.DefaultView.ChartArea.AxisX.ConvertPhysicalUnitsToData(e.XValue);
The startX variable is not correct. Now if I substract 50 to XValue I got the correct value.
Double startX = chart.DefaultView.ChartArea.AxisX.ConvertPhysicalUnitsToData(e.XValue - 50);
50 is the gap between the left side of the RadChart and the beginning of the chart area. If I add a Title on the AxisY, I must substract 81 ...
Why ConvertPhysicalUnitsToData doesn't return the right value?
Regards,
Adrien Pellegrini.