Re:MetricsGraphics.js – D3-based library optimized for visua...
by beauSD on Saturday November 15, 2014 @11:31AM
(#8611993)
Not sure if I'm misreading your step 2 description for the first strategy, but one of the great things about using this type of mouseover region is that each polygon is already tied to a single point - so there's no need to do any query for contained points on mouseover. The lookup time for contained points is constant.
[ Parent
| on HN ]
Re:MetricsGraphics.js – D3-based library optimized for visua...
by alecbenzer on Saturday November 15, 2014 @11:47AM
(#8612021)
How do go from cursor coordinates to a polygon? Once you've done that, finding the the associated point in the scatter plot should be constant, but mapping from cursor to polygons in faster than linear time seems non-trivial.
k-d trees sound closer to what you'd want to do cursor coordinates to scatter plot point lookups.