diff --git a/js/diagrams.js b/js/diagrams.js index 5c8b972..443a4da 100644 --- a/js/diagrams.js +++ b/js/diagrams.js @@ -45,11 +45,15 @@ function createLineGraph(containerId, raceData){ y = d3.scaleLinear().range([graphPosWidth.height, 0]), y2 = d3.scaleLinear().range([smallGraphPosWidth.height, 0]); - var xAxis = d3.axisBottom(x), + // Gather lapNumbers for xAxis tickvalues + var lapNumbers = []; + for(var i=0; i