Skip to content

Instantly share code, notes, and snippets.

View git-ashish's full-sized avatar
🏠
Freelancing – Open to exciting opportunities

Ashish Singh git-ashish

🏠
Freelancing – Open to exciting opportunities
View GitHub Profile
@git-ashish
git-ashish / README.md
Created May 16, 2019 17:15 — forked from veltman/README.md
Canvas scatterplot with quadtree

Canvas scatterplot w/ quadtree for point picking on hover, per: https://twitter.com/mbostock/status/733317794419212288

If you don't want the full Voronoi effect because your chart has some big dead zones, you could add a distance threshold and only trigger the highlighting when the nearest point is within that distance.

If you need behavior that more closely mimics mouse/touch because your shapes have significant dimensions or their layer order matters, you could try colorpicking instead.

@git-ashish
git-ashish / .block
Created May 16, 2019 16:58 — forked from pbeshai/.block
Animate thousands of points with canvas and D3
license: mit
height: 620
border: no
@git-ashish
git-ashish / README.md
Created May 16, 2019 16:47 — forked from veltman/README.md
Mystery box
@git-ashish
git-ashish / README.md
Created May 16, 2019 04:35 — forked from veltman/README.md
Flocking boids
@git-ashish
git-ashish / README.md
Created May 16, 2019 04:35 — forked from veltman/README.md
Flocking boids
@git-ashish
git-ashish / .block
Created May 15, 2019 09:25 — forked from mbostock/.block
Chained Transitions
license:gpl-3.0
@git-ashish
git-ashish / .block
Created May 15, 2019 08:21 — forked from mbostock/.block
Projection Transitions
license: gpl-3.0

Automatic Label Placement

This example is an extension of Mike Bostock’s tutorial Lets Make a Map that implements automatic label placement using collision detection. This is a proof of concept more than anything, not polished in any way.

References

@git-ashish
git-ashish / .block
Created May 11, 2019 11:14 — forked from Fil/.block
Weighted Centroid of the world largest cities
license: mit
@git-ashish
git-ashish / .block
Created May 8, 2019 14:51 — forked from Fil/.block
Scatterplot Matrix Brushing d3v4
license: gpl-3.0
border: no
height: 960