diff --git a/js/diagrams.js b/js/diagrams.js index 0ae0d15..8d399d0 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