This method is used to show moving marker over Line series by passing the XValue and YValue. This method is applicable for DataSeries only and will be useful if MovingMarkerEnabled property is set to True in DataSeries.
Syntax:
Numeric Axis
dataSeries.ShowMovingMarker(2, 40);
DateTime Axis
dataSeries.ShowMovingMarker(date, numericValue);
In the following example, once you click the mouse over chart, moving marker will appear over DataSeries at the given XValue and YValue position.
|
void chart_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { dataSeries.ShowMovingMarker(new DateTime(2001, 2, 1), 4); } |