' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.
' NumXScales = 1
' NumYScales = 5
' Y-Axis scale 0: FormatStyle=Numeric, NumericFormat="(Auto)"
' Y-Axis scale 1: FormatStyle=Numeric, NumericFormat="0.00%"
Private Sub XYChartNETCtl1_CrossHairsMove() Handles XYChartNETCtl1.CrossHairsMove
With XYChartNETCtl1
X0Label.Caption = .XCoordinate(0) 'Display crosshair's x-coord for x-axis 0 in X0Label
Y0Label.Caption = .YCoordinate(0) 'Display crosshair's y-coord for y-axis 0 in Y0Label
Y1Label.Caption = .YCoordinate(1, False) 'Display crosshair's y-coord for y-axis 1 in Y1Label;
'do not format the value
Y2Label.Caption = .YCoordinate(2) 'Display crosshair's y-coord for y-axis 2 in Y2Label
Y3Label.Caption = .YCoordinate(3) 'Display crosshair's y-coord for y-axis 3 in Y3Label
Y4Label.Caption = .YCoordinate(4) 'Display crosshair's y-coord for y-axis 4 in Y4Label
End With
End Sub
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.
// NumXScales = 1
// NumYScales = 5
// Y-Axis scale 0: FormatStyle=Numeric, NumericFormat="(Auto)"
// Y-Axis scale 1: FormatStyle=Numeric, NumericFormat="0.00%"
private void XYChartNETCtl1_CrossHairsMove()
{
X0Label.Text = XYChartNETCtl1.get_XCoordinate(0, true); //Display crosshair's x-coord for x-axis 0 in X0Label
X1Label.Text = XYChartNETCtl1.get_XCoordinate(1, false); //Display crosshair's x-coord for x-axis 1 in X1Label;
//do not format the value
Y0Label.Text = XYChartNETCtl1.get_YCoordinate(0, true); //Display crosshair's y-coord for y-axis 0 in Y0Label
Y1Label.Text = XYChartNETCtl1.get_YCoordinate(1, true); //Display crosshair's y-coord for y-axis 1 in Y1Label
Y2Label.Text = XYChartNETCtl1.get_YCoordinate(2, true); //Display crosshair's y-coord for y-axis 2 in Y2Label
Y3Label.Text = XYChartNETCtl1.get_YCoordinate(3, true); //Display crosshair's y-coord for y-axis 3 in Y3Label
Y4Label.Text = XYChartNETCtl1.get_YCoordinate(4, true); //Display crosshair's y-coord for y-axis 4 in Y4Label
}
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.
// NumXScales = 1
// NumYScales = 5
// Y-Axis scale 0: FormatStyle=Numeric, NumericFormat="(Auto)"
// Y-Axis scale 1: FormatStyle=Numeric, NumericFormat="0.00%"
private: System::Void XYChartNETCtl1_CrossHairsMove()
{
X0Label.Text = XYChartNETCtl1->XCoordinate[0, true]; //Display crosshair's x-coord for x-axis 0 in X0Label
X1Label.Text = XYChartNETCtl1->XCoordinate[1, false]; //Display crosshair's x-coord for x-axis 1 in X1Label;
//do not format the value
Y0Label.Text = XYChartNETCtl1->YCoordinate[0, true]; //Display crosshair's y-coord for y-axis 0 in Y0Label
Y1Label.Text = XYChartNETCtl1->YCoordinate[1, true]; //Display crosshair's y-coord for y-axis 1 in Y1Label
Y2Label.Text = XYChartNETCtl1->YCoordinate[2, true]; //Display crosshair's y-coord for y-axis 2 in Y2Label
Y3Label.Text = XYChartNETCtl1->YCoordinate[3, true]; //Display crosshair's y-coord for y-axis 3 in Y3Label
Y4Label.Text = XYChartNETCtl1->YCoordinate[4, true]; //Display crosshair's y-coord for y-axis 4 in Y4Label
}