Skip to content

Instantly share code, notes, and snippets.

@as-eldlc
Created October 15, 2018 15:41
Show Gist options
  • Save as-eldlc/e2b878745c04b1e5e67a0c4a1d5912b9 to your computer and use it in GitHub Desktop.
Save as-eldlc/e2b878745c04b1e5e67a0c4a1d5912b9 to your computer and use it in GitHub Desktop.
distribution 1
license: mit
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
</head>
<body>
<script>
// Feel free to change or delete any of the code you see in this editor!
var svg = d3.select("body").append("svg")
.attr("width", 960)
.attr("height", 500)
// Get the data
$.get("https://docs.google.com/spreadsheets/d/e/2PACX-1vQfeT9lPtJ5ia2XsopWVdvl98Oy7Bu6xL9SVQBEh32OXC8Qk4MKYxr2TcGSSTkAs7kAMfjF83IEGhQ-/pub?gid=0&single=true&output=csv", function(txt){
console.log("data loaded");
data_full = d3.csvParseRows(txt);
console.log("TEST");
})
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment