RenderableSeries Hit-Test is not working as expected. Some bugs on the the RenderableSeries Hit-Test. Distance between two points are less then its working most of the time and getting the isHit variable getting true. But the distance is high then the lines near to the point only getting the isHit true. I am attaching the image when the red marked area is working fine and the blue marked area not working.
I’ve done some testing today. I created an example which you can run here for the Hit-Test API:
This seems to be working fine. Can you test it out?
This is looking a lot better. Will be publishing a fix for this shortly.
I updated the HitTestingPointsDemo example.
There are two pieces that need to be changed in order to show isHit each time you click on the line:
1. You should use ENearestPointLogic.NearestHorizontalPoint instead of ENearestPointLogic.NearestPoint2D, it will search for the nearest horizontal point.
2. You should set the interpolate flag to True. If True the line is hit-tested, otherwise the point.
const hitTestInfo = lineSeries.hitTestProvider.hitTest( mousePoint, ENearestPointLogic.NearestPoint2D, HIT_TEST_RADIUS, true );
The image is attached.
Please login first to submit.