From b2bb2bc441d7cd4b07c0c3b6613d7381a13b5082 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sun, 31 Dec 2017 00:28:17 +0100 Subject: [PATCH] Allow linepoints to scale --- js/diagrams.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/diagrams.js b/js/diagrams.js index 7b506fb..cca6294 100644 --- a/js/diagrams.js +++ b/js/diagrams.js @@ -523,6 +523,7 @@ function createLineGraph(containerId, raceData){ focus.selectAll(".pathLines").attr("d", lineDataDefinition); focus.selectAll(".pitstopdot").attr("cx", function(d, i) {return x(d.lap) }); focus.selectAll(".endpointdot").attr("x", function(d, i) { return x(d.lap) - rectSize * 1/2; }); + focus.selectAll(".linedot").attr("cx", function(d, i) {return x(d.lap) }); // Update xAxis focus.select(".axis--x").call(xAxis); // Update gridlines