forked from yonitru's block: d3.js external csv by yonit
xxxxxxxxxx
<html>
<head>
<title>6</title>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
</head>
<style>
body { margin:10;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
<body>
<p class="csvdata"> </p>
<script>
d3.csv("grades-data.csv", function(error, data){
if (error) {
console.log(error)
} else {
// console.log(data);
$("p.csvdata").text(JSON.stringify(data));
}
});
</script>
</body>
</html>
https://d3js.org/d3.v4.min.js
https://code.jquery.com/jquery-1.12.0.min.js