From 44e8ccacfb624f805f91b75b3e2827d0340e7fef Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sun, 31 Dec 2017 01:55:20 +0100 Subject: [PATCH] Enable clipping for xAxis --- js/diagrams.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/diagrams.js b/js/diagrams.js index badb1ba..64f9900 100644 --- a/js/diagrams.js +++ b/js/diagrams.js @@ -134,7 +134,7 @@ function createLineGraph(containerId, raceData){ focus.append("path") .data([driverLapData.laps]) .attr("class", "line pathLines") - .attr("clip-path","url(#clip)") + .attr("clip-path","url(#clip)") .attr("data-line", driverLapData.driver.driverId) // custom data to specify the line .attr("data-opacitychange", 1) .attr("data-highlighted", 0) @@ -287,6 +287,7 @@ function createLineGraph(containerId, raceData){ focus.append("g") .attr("class", "axis axis--x") .attr("transform", "translate(0," + graphPosWidth.height + ")") + .attr("clip-path","url(#clip)") .call(xAxis); // Add the Y Axis on both sides