I have a real time application that has 4 Y axis. The application has a cursor that needs to be assigned to a selected Y axis. My problem is I cannot see a way to extract data for axis 3 and 4. The application structure is based on provided real time examples.
I have a chart drawing routine (snippet below) Y axis 3 and 4 defined Y3 & Y4. Works as expected.
private void drawChart(WPFChartViewer viewer)
XYChart c = new XYChart(840, 500);
//Adding 2 Y axis in addition to c.yAxis() and c.yAxis2()
Axis Y3 = c.addAxis(Chart.Right, axis3pos);
Axis Y4 = c.addAxis(Chart.Right, axis4pos);
Y3.setTitle(trace.DisplayName, "Arial", 12);
Y4.setTitle(trace.DisplayName, "Arial", 12);
viewer.Chart = c;
Then there's a routine for the cursor display (snippet below).
Obtaining data for c.yAxis() and c.yAxis2 works fine, but I cannot see how to obtain the data for my Y3 and Y4 axis.
private void DrawTrackLine(XYChart c, ................)
//Getting the selected Y axis value
yValue = c.getYValue(line.Yposn, c.yAxis());
yValue = c.getYValue(line.Yposn, c.yAxis2());
// How to obtain data for axis Y3 and Y4 ????
Thanks for any assistance.
Re: Obtaining Y axis data in multi-axis application