What problem does this feature solve?
For scatter series, when we render 50K+ data points, hovering over a dot to show tooltip becomes noticeably slow (somehow turning on large paints the dots outside of the grid for me, so I can't use it).
I wonder if it's because we're searching the nearest datapoint linearly with O(N) instead of O(logN) with spatial indexing?
D3FC uses d3-quadtree to index all the data points and that makes their tooltip really fast!
https://blog.scottlogic.com/2020/05/01/rendering-one-million-points-with-d3.html#spatial-search-of-large-datasets
Would love to know what the team thinks 😄
Thank you!
What does the proposed API look like?
chartInstance.set({
series: [{
type: "scatter",
spatialIndex: "quadtree", // default to quadtree
// ... other scatter series option
}],
// ... other options
})
What problem does this feature solve?
For scatter series, when we render 50K+ data points, hovering over a dot to show tooltip becomes noticeably slow (somehow turning on
largepaints the dots outside of the grid for me, so I can't use it).I wonder if it's because we're searching the nearest datapoint linearly with O(N) instead of O(logN) with spatial indexing?
D3FCusesd3-quadtreeto index all the data points and that makes their tooltip really fast!https://blog.scottlogic.com/2020/05/01/rendering-one-million-points-with-d3.html#spatial-search-of-large-datasets
Would love to know what the team thinks 😄
Thank you!
What does the proposed API look like?