Skip to main content
100%

Scatterplots with D3 and Quadtrees

✓ Published0🌍 Public
FFrissAnalytics
Last edited Sep 13, 2018
Created on Sep 13, 2018

A scatterplot of 50 randomly generated points uses interactive brushing to highlight selected data, listing their labels and recoloring them in tomato. The implementation leverages a quadtree for efficient spatial lookup, and a "Reveal quadtree" button triggers a slowed animation of the quadtree traversal during brushing. Built with D3 v4, the visualization renders in SVG and uses `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and a custom `d3.quadtree` structure.

AI-generated description
<h3>Demo of Efficient Brushing in Scatterplots with D3 and Quadtrees</h3> <ul> <li> <a href="https://github.com/pbeshai/pbeshai.github.io/blob/master/vis/scatterplot-brushing/scatterplot-brushing.js">Source Code on GitHub</a> </li> <li> <a href="{% post_url 2016-12-03-brushing-in-scatterplots-with-d3-and-quadtrees %}">Blog Post</a> </li> </ul> <p> The brushing in this scatterplot is optimized to use a <a href="https://en.wikipedia.org/wiki/Quadtree">quadtree</a>, reducing the amount of searching needed to find the data points selected by the brush. Click "Reveal the quadtree" to see a slowed down animation of how the quadtree is traversed during brushing. </p>
mit Licensed

Similar vizzes