From ad0a44ca3e0eebae1be3080aae170ca16b19f35f Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sat, 30 Dec 2017 19:44:51 +0100 Subject: [PATCH] Fix weird scaling --- js/diagrams.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/diagrams.js b/js/diagrams.js index 8c78b88..24b4533 100644 --- a/js/diagrams.js +++ b/js/diagrams.js @@ -40,7 +40,7 @@ function createLineGraph(containerId, raceData){ // set the ranges var x = d3.scaleLinear().range([0, width]), - x2 = d3.scaleTime().range([0, width]), + x2 = d3.scaleLinear().range([0, width]), y = d3.scaleLinear().range([height, 0]), y2 = d3.scaleLinear().range([height2, 0]);