Begin preparations for loading data in D3.js

This commit is contained in:
Jan Philipp Timme 2017-11-15 19:46:47 +01:00
parent 526b8cdac4
commit 2505389a93
Signed by untrusted user: JPT
GPG Key ID: 5F2C85EC6F3754B7
3 changed files with 29 additions and 0 deletions

View File

@ -4,6 +4,7 @@
<title>TODO</title>
<meta charset="UTF-8">
<link type="style/css" href="style/main.css">
<script type="text/javascript" src="js/d3/d3.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>

View File

@ -0,0 +1,24 @@
"use strict";
console.log("Main script running.");
console.log("Let's load and preprocess all data properly.");
// data/circuits.csv
d3.csv('data/circuits.csv', function(data) {
console.log(data[0]);
});
// data/constructorResults.csv
// data/constructors.csv
// data/constructorStandings.csv
// data/drivers.csv
// data/driverStandings.csv
// data/lapTimes.csv
// data/pitStops.csv
// data/qualifying.csv
// data/races.csv
// data/results.csv
// data/seasons.csv
// data/status.csv
console.log("All done. Ready.");

View File

@ -0,0 +1,4 @@
html, body {
margin: 0;
padding: 0;
}