f1vis/js/main.js

17 lines
478 B
JavaScript

"use strict";
/*
* This file contains the main control flow.
*/
preprocessor.load(function(data) {
// Some sample code for a year selector - TODO: Improve a lot and move somewhere else
var yearSelector = $("#seasonByYearSelector");
var seasons = preprocessor.getResults().seasons;
for(var year in seasons) yearSelector.append("<option>" + year + "</option>");
// No more test chart
//createTestPieChart("#testchartbox", queries.getDriversByNationality());
});