Skip to content

Instantly share code, notes, and snippets.

@georules
Created May 30, 2013 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save georules/5678250 to your computer and use it in GitHub Desktop.
Save georules/5678250 to your computer and use it in GitHub Desktop.
testing params
{"description":"testing params","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01}
// http://ec2-54-235-157-206.compute-1.amazonaws.com/test/
// http%3A%2F%2Fec2-54-235-157-206.compute-1.amazonaws.com%2Ftest%2F
var params = tributary.query;
console.log("query", params);
d3.csv(params.data, function(e,data) {
console.log(e);
var codewindow = svg.append("foreignObject").attr("x",42).attr("y",119)
.attr("width", 597)
.attr("height", 500)
.append("xhtml:body")
.style("font", "13px 'Courier'")
.style("color", "#A06814")
.html(JSON.stringify(data));
});
var svg = d3.select("svg");
var codewindow = svg.append("foreignObject").attr("x",42).attr("y",38)
.attr("width", 504)
.attr("height", 500)
.append("xhtml:body")
.style("font", "13px 'Courier'")
.style("color", "#0C87AD")
.html(JSON.stringify(params));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment