Skip to content

Instantly share code, notes, and snippets.

@syntagmatic
syntagmatic / .block
Last active September 11, 2016 11:21
Sparse Matrix Force Graph
license: gpl-3.0
height: 600
border: no
@syntagmatic
syntagmatic / .block
Last active November 8, 2019 07:55 — forked from mbostock/.block
Facebook Egonet
license: gpl-3.0
height: 600
border: no
@syntagmatic
syntagmatic / .block
Last active November 8, 2019 07:54 — forked from mbostock/.block
Dynamic Hexbins
license: gpl-3.0
border: no
@syntagmatic
syntagmatic / README.md
Last active September 11, 2016 11:23 — forked from armollica/README.md
Convert SVG to Retina Canvas

Convert SVG to canvas on-the-fly. Updated to support higher pixel densities, like Retina displays. Compare to Andrew Mollica's example which looks slightly fuzzy on high-density displays.

This article from MDN explains the process: Drawing DOM object into a canvas. This works for any DOM object, not just SVG. Not sure if this is well supported by older browsers. Works on Chrome, Firefox and IE 10 for me. The bar chart is a fork of this block by Mike Bostock: Canvas Bar Chart.

@syntagmatic
syntagmatic / .block
Last active September 10, 2016 04:29 — forked from mbostock/.block
Hexbins
license: gpl-3.0
border: no
@syntagmatic
syntagmatic / .block
Last active November 8, 2019 07:55
Sankey Transitions
border: no
@syntagmatic
syntagmatic / Krzywinski-1.jpg
Last active September 12, 2016 09:21
Genomics Visualization Slides
Krzywinski-1.jpg
@syntagmatic
syntagmatic / README.md
Last active December 5, 2017 22:30 — forked from sxywu/README.md
Gooey Phyllotaxis Dance
@syntagmatic
syntagmatic / .block
Last active December 5, 2017 22:30 — forked from mbostock/.block
Rainbow Color Cycling
license: gpl-3.0