Begin preparations for loading data in D3.js
This commit is contained in:
parent
526b8cdac4
commit
2505389a93
|
@ -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>
|
||||
|
|
24
js/main.js
24
js/main.js
|
@ -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.");
|
|
@ -0,0 +1,4 @@
|
|||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
Loading…
Reference in New Issue