How to distinguish objects which receive mouseclick?


Author
Message
Alex Efimov
Alex Efimov
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)
Group: Forum Members
Posts: 5, Visits: 1
Thank you very much for the answer.
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Alex,
The line series will record markers and line segments as visual elements that belong to a "data point". In general all series behave like this as the lowest "precision" of the internal image map in the chart is data point - therefore the chart cannot distinguish if the item clicked is a line segment or a marker. You can easily workaround this limitation by using a second point series with the same values as the line series instead of using markers.



Best Regards,
Nevron Support Team


Alex Efimov
Alex Efimov
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)
Group: Forum Members
Posts: 5, Visits: 1
Hi.
I have a line series displayed on a chart. I've subscribed to the MouseClick event of the NChartControl instance.
When I get the event handler invoked, I perform a HitTest which returns a NHitTestResult object.
I want to know somehow if the user clicked the line or the marker point. Is there a way to get such a distinction?

Thanks in advance,
Alexander Efimov.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search