Skip to content

Instantly share code, notes, and snippets.

@ariaz
ariaz / inlet.js
Created June 23, 2012 23:52
just another inlet to tributary
//Try changing all these parameters
//Layout properties
var n = 35;
var m = 30;
trib.spacing = 21;
trib.opacity = 0.8; trib_options.opacity = {"min":0, "max":1};
trib.stroke_width = 10;
//Sin wave function
@ariaz
ariaz / inlet.js
Created June 23, 2012 23:56
just another inlet to tributary
//Try changing all these parameters
//Layout properties
var n = 35;
var m = 150;
trib.spacing = 21;
trib.opacity = 0.8; trib_options.opacity = {"min":0, "max":1};
trib.stroke_width = 10;
//Sin wave function
@ariaz
ariaz / inlet.js
Created June 24, 2012 02:22
just another inlet to tributary
//Try changing all these parameters
//Layout properties
var json = (function () {
var json = null;
$.ajax({
'async': false,
'global': false,
'url': '/static/data.json',
'dataType': "json",
@ariaz
ariaz / inlet.js
Created June 24, 2012 02:57
just another inlet to tributary
//Try changing all these parameters
//Layout properties
var json = (function () {
var json = null;
$.ajax({
'async': false,
'global': false,
'url': '/static/data.json',
'dataType': "json",
@ariaz
ariaz / inlet.js
Created July 7, 2012 19:20
just another inlet to tributary
var margin = 50,
width = 700,
height = 300;
d3.json('/static/bus_perf.json', draw);
function draw(data){
d3.select("svg")
.attr("width", width)
@ariaz
ariaz / inlet.js
Created July 7, 2012 19:35
just another inlet to tributary
var margin = 50,
width = 700,
height = 442;
trib.r = 8.241758241758248;
d3.json('/static/bus_perf.json', draw);
function draw(data){
d3.select("svg")
.attr("width", width)
@ariaz
ariaz / inlet.js
Created July 7, 2012 19:43
just another inlet to tributary
var margin = 50,
width = 700,
height = 442;
trib.r = 8.241758241758248;
d3.json('/static/bus_perf.json', draw);
function draw(data){
d3.select("svg")
.attr("width", width)
@ariaz
ariaz / inlet.js
Created July 7, 2012 19:44
just another inlet to tributary
var margin = 50,
width = 700,
height = 442;
trib.r = 8.241758241758248;
d3.json('/static/bus_perf.json', draw);
function draw(data){
d3.select("svg")
.attr("width", width)
@ariaz
ariaz / inlet.js
Created July 7, 2012 19:47
just another inlet to tributary
var margin = 50,
width = 700,
height = 442;
trib.adjust_y_axes = 0;
trib.r = 2.7170631566236096;
d3.json('/static/bus_perf.json', draw);
function draw(data){
@ariaz
ariaz / inlet.js
Created July 7, 2012 22:27
just another inlet to tributary
var margin = 50,
width = 700,
height = 442;
trib.adjust_y_axes = 0;
trib.r = 5.075832270615535;
d3.json('/static/bus_perf.json', draw);
function draw(data){