Determine clicked row
Hello.
I've built a chart with 5 rows.
Each row holds a FastLineSeries with its own numerical YAxis.
(please see attached picture)
I'd like to enable the user to set a VerticalLineAnnotation by clicking into the chart.
Using the MouseDown event of the chart and the FindNearestChartPoint methode I get the correct x- and y-values for every series.
So what would be the best way to determine the exact row/series which was clicked by the user?
I thought there has to a better way than to calculate it using the mouse coordinates
And I didn't use the MouseDown event of the series itself, because I didn't want to force the user to click exactly on the drawn line
Thanks for any help
Ralf
Attachment: RowChart_b5debd84.zip
SIGN IN To post a reply.
6 Replies
1 reply marked as answer
DD
Devakumar Dhanapoosanam
Syncfusion Team
July 22, 2020 02:17 AM UTC
Hi Ralf Erdmann,
Greetings from Syncfusion.
Currently we are analyzing your requirement at our end and we will update the status on today EOD (July 22, 2020).
Regards,
Devakumar D
DD
Devakumar Dhanapoosanam
Syncfusion Team
July 23, 2020 02:05 AM UTC
Hi Ralf Erdmann,
We would like to let you know that there is no direct way to get the selected row or series using the MouseDown in multiple chart area. Hence, we need some more time to achieve your requirement and we will update you the complete details on or before July 24, 2020.
Regards,
Devakumar D
YP
Yuvaraj Palanisamy
Syncfusion Team
July 26, 2020 04:59 PM UTC
Hi Ralf Erdmann,
We are currently working to achieve your requirement and will update the status on 27th July 2020.
Regards,
Yuvaraj
YP
Yuvaraj Palanisamy
Syncfusion Team
July 27, 2020 03:08 PM UTC
Hi Ralf Erdmann,
Thanks for your patience.
We have achieved your requirement for getting row which is clicked by user by using PointToValue() method of SfChart. Also, we have attached the sample for your reference. Please find the sample from the below location.
Please let us know if you need any further assistance.
Regards,
Yuvaraj
Marked as answer
RE
Ralf Erdmann
July 28, 2020 03:51 PM UTC
Hello Yuvaraj,
Thanks a lot for your help.
It works perfectly for me.
Regards and have a nice day,
Ralf
HM
Hemalatha Marikumar
Syncfusion Team
July 29, 2020 04:49 AM UTC
Hi Ralf,
Thanks for your update.
We are glad to hear that given solution works at your end.
Regards,
Hemalatha M.
Hemalatha M.
SIGN IN To post a reply.
- 6 Replies
- 4 Participants
- Marked answer
-
RE Ralf Erdmann
- Jul 20, 2020 02:01 PM UTC
- Jul 29, 2020 04:49 AM UTC