Synchronise Crosshair/Trackball in multiple charts on winform

Hi,


I have 3 charts on a window (stacked horizontally) and I want the crosshair (the vertical line specifically) on top chat to be syncronised and visible on bottom 2 charts. Can you please let me know how can I do this ? The X axis for all the 3 charts have same value.


Thanks,

Amit


4 Replies

YP Yuvaraj Palanisamy Syncfusion Team August 4, 2021 06:55 AM UTC

Hi Amitabha, 
 
Greetings from Syncfusion. 
 
We have achieved your requirement “Show Trackball for all the chart with same xValue” with the help of ChartAxisLayout and adding Trackball / Crosshair in the windows forms chart control. Also, we have attached the sample for your reference, please find the sample from the below link. 
 
  
Output: 
 
 
For more details, please refer the below link. 
 
Regards, 
Yuvaraj. 



AM Amitabha replied to Yuvaraj Palanisamy August 4, 2021 10:48 AM UTC

Hi Yuvaraj,


Sorry if my requirement was not clear enough. Attached below an image of how I want the crosshair to function. I have 3 Chart Controls on a Form and I want the CrossHair on ChartControl1(The Crosshair's Y Axis Bar )  To extend on ChartControl2 And ChartControl3 As shown below image. Please suggest how I can achieve this.




Thanks,

Amit



YP Yuvaraj Palanisamy Syncfusion Team August 6, 2021 02:59 AM UTC

Hi Amitabha, 

Thanks for providing the information. 

Currently we are working on this and we will update you with complete details on or before 6th August 2021. We appreciate your patience until then. 

Regards, 
Yuvaraj.


YP Yuvaraj Palanisamy Syncfusion Team August 6, 2021 04:26 AM UTC


Thanks for your patience.
 
 
We have achieved your requirement “Crosshair line showing for all the chart” by workaround with the help of adding ChartDockControl and get positioning by MouseEnter, MouseMove and MouseLeave event of chart control in Windows foms. Also, we have attached the sample for your reference. Please find the sample from the below link. 
 
  
Output: 
  
 
For more details, please refer the below link. 
 
Please let us know if you have any concern. 
 
Regards, 
Yuvaraj. 


Loader.
Up arrow icon