Move a point with the mouse cursor

Hello

In my project I to plot the graph on an array of data and I want to hover the cursor over a point and hold down the button move it along the Y axis. Tell me how I can implement this in my code.

Thank you.


2 Replies 1 reply marked as answer

DS Dmitriy Shilin January 22, 2022 06:08 PM UTC

I actively studied the forum and found this: https://www.syncfusion.com/forums/49026/refreshing-a-series-if-the-user-is-dragging-a-point-with-the-mousebut could not fully understand.

and then I found it in the documentation: https://help.syncfusion.com/windowsforms/chart/faq/how-to-drag-the-chart-series-points-at-run-time?cs-save-lang=1&cs-lang=csharpby adding an event ChartRegionMouseUp and copying the provided code visual studio cannot run the code and gives an error. 

What is this.isDragging, this.currentRegion



GM Gayathri Manickam Syncfusion Team January 24, 2022 03:07 PM UTC

Hi Shilin, 
 
We analysed your query and prepared a sample for your requirement to move a point with mouse cursor with the help of ChartRegionMouseMove event of ChartControl. Please download the sample in the below location and let us know if you have any other queries.  
 
 
Regards,  
Gayathri M 


Marked as answer
Loader.
Up arrow icon