This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Try changing all these parameters | |
//Layout properties | |
var json = (function () { | |
var json = null; | |
$.ajax({ | |
'async': false, | |
'global': false, | |
'url': '/static/data.json', | |
'dataType': "json", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Try changing all these parameters | |
//Layout properties | |
var json = (function () { | |
var json = null; | |
$.ajax({ | |
'async': false, | |
'global': false, | |
'url': '/static/data.json', | |
'dataType': "json", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var margin = 50, | |
width = 700, | |
height = 300; | |
d3.json('/static/bus_perf.json', draw); | |
function draw(data){ | |
d3.select("svg") | |
.attr("width", width) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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){ |
OlderNewer