Skip to content

Instantly share code, notes, and snippets.

View davo's full-sized avatar
🦮
Golden

Davo Galavotti davo

🦮
Golden
View GitHub Profile
@davo
davo / index.html
Created November 9, 2016 20:00 — forked from d3noob/.block
Sankey from csv with d3.js
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
@davo
davo / .block
Last active October 24, 2016 22:03 — forked from mbostock/.block
Geodesic Rainbow
license: gpl-3.0
@davo
davo / index.html
Created October 18, 2016 05:26 — forked from syntagmatic/index.html
2D Color Interpolation
<!DOCTYPE html>
<meta charset='utf-8'>
<body>
<script src='http://d3js.org/d3.v3.min.js'></script>
<script>
var size = 12;
var step = 40;
var X = d3.scale.linear()
.domain([0, size])
@davo
davo / .block
Last active June 29, 2016 03:48 — forked from mbostock/.block
D3 Custom Bundle
license: gpl-3.0
@davo
davo / README.md
Created June 3, 2016 01:22 — forked from nbremer/.block
Animated gradient - Simple rectangle
@davo
davo / README.md
Created June 1, 2016 13:25 — forked from christophermanning/README.md
Unknown Pleasures

Forked from Tom MacWright and updated by Christopher Manning

Summary

This adds simplex noise to the waves. The 3D noise uses the parameters x and y. z is a function of the velocity and frame from d3.timer.

Controls

  • Drag up and down to adjust the height of the noise
@davo
davo / README.md
Last active May 31, 2016 15:17 — forked from nbremer/.block
Data based gradients - HR Diagram

An example of creating data based gradients used in my blog on Data-based and unique gradients for visualizations with d3.js . Here each star has a unique radial gradient where the color is based on the effective temperature of the star.

This is a Hertzsprung–Russell diagram. In this diagram stars are plotted according to their luminosities (or the related absolute magnitudes) versus their effective temperatures (or related spectral classifications). Many interesting discoveries around stellar evolution were speculated from this chart even before much was known about what happens in the interior of stars by looking at the positions of stars on the diagram.

The data comes from the HYG database. I took a subset of 400 stars that lie relatively close.

The orange circle is where our own

@davo
davo / .block
Created May 26, 2016 17:14 — forked from tonyhschu/.block
Small Scroll-linked Animation Demo
scrolling: yes
license: MIT
@davo
davo / README.md
Last active August 29, 2015 14:27 — forked from jazzido/README.md
Diferencia porcentual votos positivos al FPV entre PASO 2011 y 2015 — Por provincia
@davo
davo / index.html
Last active August 29, 2015 14:26 — forked from mbostock/.block
Force-Directed Graph with Mouseover
<!DOCTYPE html>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<style>
.link {
fill: none;
stroke: #666;
stroke-width: 1.5px;
}