Skip to content

Instantly share code, notes, and snippets.

View frendhisaido's full-sized avatar

Frendhi frendhisaido

View GitHub Profile
@caged
caged / d3_line.js
Created December 29, 2011 21:38 — forked from michaelaguiar/d3_line.js
D3.js Line Chart Test
(function() {
$(function() {
var data, h, max, paths, pb, pl, pr, pt, ticks, version, vis, w, x, y, _ref;
version = Number(document.location.hash.replace('#', ''));
data = [[3, 7, 9, 1, 4, 6, 8, 2, 5], [5, 2, 3, 4, 9, 6, 4, 6, 8]];
_ref = [20, 20, 20, 20], pt = _ref[0], pl = _ref[1], pr = _ref[2], pb = _ref[3];
w = 800 - (pl + pr);
h = 300 - (pt + pb);
max = d3.max(data, function(d) {
return d3.max(d);
@mbostock
mbostock / .block
Last active November 14, 2023 03:46
Google Maps + D3
license: gpl-3.0