Skip to content

Instantly share code, notes, and snippets.

View jonathanbp's full-sized avatar

Jonathan Bunde-Pedersen jonathanbp

View GitHub Profile
@jonathanbp
jonathanbp / gulpfile.js
Last active August 29, 2015 14:19 — forked from lishiyo/gulpfile.js
// Paths
var paths = {
sources: "./src/**/*.js",
sourceMain: "./src/index.js",
tests: "./test/*.js",
styles: "./styles",
target: "./dist",
targetMain: "bundle.js",
targetMainMin: "bundle.min.js"
}
(function () {
d3.analog= function() {
var height = 100, gap=10,
xValue = function(d) { return d[0]; },
xScale = null,
color = d3.scale.category10();
function chart(selection) {
selection.each(function(d) {
var g = d3.select(this);