Hi Michele,
Based on your query, we can achieve your requirement by utilizing vertical line annotations. By enabling the CanDrag property, you can enable the dragging functionality for the vertical line. To achieve this, the DragXValues property in the ViewModel has been initialized to obtain the X values during the drag operation. Below, you will find the provided code snippet, image, and a sample for reference.
<syncfusion:SfChart.Annotations> <syncfusion:VerticalLineAnnotation ShowAxisLabel="True" X1="{Binding DragXValue,Mode=TwoWay}" CanDrag="True"></syncfusion:VerticalLineAnnotation> </syncfusion:SfChart.Annotations> |
private double dragxValue; publicdouble DragXValue { get { return dragxValue; } set { dragxValue = value; PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("DragXValue")); } } |

We hope it helps. If you need any further assistance, feel free to ask.
Regards,
Nitheeshkumar.
Attachment: DraggingSample_53703f36.zip