How to get the marker LocationX and LocationY when we load the SfCartesianChart

Hello Team,
 I want to get my last marker position(LocationX and LocationY) when i load the SfCartesianChart Please share the solution for it it's a major issue it's blocking the pro


1 Reply

SK Sriram Kiran Senthilkumar Syncfusion Team February 10, 2022 12:03 PM UTC

Hi Vikram, 

Greetings from Syncfusion. Currently with our chart source, the last datapoint’s marker location x and y values can be obtained by overriding the drawDataMarker method only. To illustrate this, we have also created a simple chart sample in which we have overridden the drawDataMarker using the onCreateRenderer callback available in the series and attached the sample below for reference. In the drawDataMarker method, you can be able to retrieve the last point’s offset location(x,y). 
  
Please check with above sample and revert us if you still have further concerns. 
 
Regards, 
Sriram Kiran 


Loader.
Up arrow icon