D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
romsson
Full window
Github gist
Raw data display as HTML Table
<!DOCTYPE html> <html lang="en"> <meta charset="utf-8"> <body> <script src="https://d3js.org/d3.v3.min.js"></script> <script> d3.tsv("unemp_states_us_nov_2013.tsv", function(error, data){ var table = d3.select("body").append("table"), tbody = table.append("tbody"); var rows = tbody.selectAll("tr") .data(data) .enter() .append("tr"); var cells = rows.selectAll("td") .data(function(row) { return d3.range(Object.keys(row).length).map(function(column, i) { return row[Object.keys(row)[i]]; }); }) .enter() .append("td") .text(function(d) { return d; }); }); </script> </body> </html>
Modified
http://d3js.org/d3.v3.min.js
to a secure url
https://d3js.org/d3.v3.min.js