From 2505389a938759a01042bad6038664d1d00e4434 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Wed, 15 Nov 2017 19:46:47 +0100 Subject: [PATCH] Begin preparations for loading data in D3.js --- index.html | 1 + js/main.js | 24 ++++++++++++++++++++++++ style/main.css | 4 ++++ 3 files changed, 29 insertions(+) diff --git a/index.html b/index.html index 82a7113..dbd42fe 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ TODO + diff --git a/js/main.js b/js/main.js index e69de29..696c51f 100644 --- a/js/main.js +++ b/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."); \ No newline at end of file diff --git a/style/main.css b/style/main.css index e69de29..b23e995 100644 --- a/style/main.css +++ b/style/main.css @@ -0,0 +1,4 @@ +html, body { + margin: 0; + padding: 0; +} \ No newline at end of file