D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
nehabandal
Full window
Github gist
video url testing
Built with
blockbuilder.org
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>D3 Links Example</title> <script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> </head> <body> <script> var data = ["JavaScript", "Document_Object_Model", "Ajax_(programming)"]; d3.select("body").append("svg") .attr("width", 960) .attr("height", 500) .selectAll("a").data(data) .enter() .append("a") .attr("xlink:href", function (d){ return "https://www.ted.com/talks/thom_mayne_on_architecture_as_connection" + d; }) .append("rect") .attr("x", function (d, i){ return 140 + i * 240; }) .attr("y", 150) .attr("width", 200) .attr("height", 200); </script> </body> </html>
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js