Skip to content

Instantly share code, notes, and snippets.

View bumbeishvili's full-sized avatar
🏠
Working from home

David Bumbeishvili bumbeishvili

🏠
Working from home
View GitHub Profile
@git-ashish
git-ashish / .block
Created May 21, 2018 06:55 — forked from mbostock/.block
Path Tween
license: gpl-3.0
@HarryStevens
HarryStevens / .block
Last active June 18, 2018 20:44
Contours
license: gpl-3.0
@git-ashish
git-ashish / .block
Created May 12, 2018 11:49 — forked from nbremer/.block
Gooey Collision Detection
license: gpl-3.0
@tomshanley
tomshanley / .block
Last active October 27, 2019 19:49
Network flow with happy path
license: mit
@tomshanley
tomshanley / .block
Last active January 16, 2020 13:29
Sankey, with different end note link treatment
license: mit
@RCura
RCura / README.md
Created April 28, 2018 10:40 — forked from emeeks/README.md
circularbrush.filter

The earlier example of this brushable radial chart led to some feedback to make the filtering better. I introduced a #circularBrush.filter(array,accessor) that takes an array of data and and accessor for that data and returns to you the data that falls into the area of the brush. The functionality of this chart is no different than the other, but if you take a look at the code, it's much more efficient.

@Kcnarf
Kcnarf / .block
Last active December 3, 2018 08:14
d3-voronoi-map : same final partitioning on reload
license: mit
@johnburnmurdoch
johnburnmurdoch / index.html
Last active October 27, 2019 19:39
Javascript/canvas city generator
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title>Canvas City</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<canvas></canvas>
@veltman
veltman / README.md
Last active December 18, 2020 08:51
Centerline label placement

Implementing a variation of Joachim Ungar's curved label placement method described here. The basic process is:

  1. Turn the shape into a polygon of evenly-spaced points.
  2. Generate a Voronoi diagram of those points.
  3. Clip the edges.
  4. Turn the edges into a graph.
  5. Find the "longest shortest path" between any pair of perimeter nodes.
  6. Smooth/simplify that path a bit.
  7. Place text along the smoothed centerline with a <textPath>.
@1wheel
1wheel / README.md
Last active March 18, 2024 22:22
rounded-corner-curve

Levin Dixon asked how to create a path with rounded corners. The provided curves in d3 adjust the entire path, not just area around the data points.

This might look a better with an A command instead of C, but circles are hard.