Hi Telerik,
I have a problem getting the correct mouse coordinates(lineSeries is a RadCartesianChart). I know how to get the coordinates:
var mousePosition = e.GetPosition(lineSeries);
DataTuple tuple = lineSeries.ConvertPointToData(mousePosition);
double x = (double)tuple.FirstValue;
double y = (double)tuple.SecondValue;
But i have 3 axes on my graph and when i extract the mouse coordinates i get the coordinates for the wrong axes. They are defined like this:
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:LinearAxis VerticalLocation="Bottom" Title="Concentration(µmol/L)" x:Name="HorizontalAxis"/>
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis IsInverse="True" Title="Depth(µm)" x:Name="VerticalAxis"/>
</telerik:RadCartesianChart.VerticalAxis>
Haxis = new LinearAxis();
Haxis.Title = "Rate (nmol cm-3 s-1)";
Haxis.VerticalLocation = AxisVerticalLocation.Top;
Haxis.IsInverse = true;
I get the mouse coordinates for the horizontal axis defined in XAML but i want mouse coordinates for the horizontal axis defined in the C# code.
So how would i extract mouse coordinates for the correct axes when i have more than two?
Best regards,
Jeppe
I have a problem getting the correct mouse coordinates(lineSeries is a RadCartesianChart). I know how to get the coordinates:
var mousePosition = e.GetPosition(lineSeries);
DataTuple tuple = lineSeries.ConvertPointToData(mousePosition);
double x = (double)tuple.FirstValue;
double y = (double)tuple.SecondValue;
But i have 3 axes on my graph and when i extract the mouse coordinates i get the coordinates for the wrong axes. They are defined like this:
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:LinearAxis VerticalLocation="Bottom" Title="Concentration(µmol/L)" x:Name="HorizontalAxis"/>
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis IsInverse="True" Title="Depth(µm)" x:Name="VerticalAxis"/>
</telerik:RadCartesianChart.VerticalAxis>
Haxis = new LinearAxis();
Haxis.Title = "Rate (nmol cm-3 s-1)";
Haxis.VerticalLocation = AxisVerticalLocation.Top;
Haxis.IsInverse = true;
I get the mouse coordinates for the horizontal axis defined in XAML but i want mouse coordinates for the horizontal axis defined in the C# code.
So how would i extract mouse coordinates for the correct axes when i have more than two?
Best regards,
Jeppe