From 30a7e93e7eadab857aab85fc7977e91a5ed29619 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sun, 31 Dec 2017 15:25:42 +0100 Subject: [PATCH] Re-enable zoom --- js/diagrams.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/diagrams.js b/js/diagrams.js index ce02cef..656affa 100644 --- a/js/diagrams.js +++ b/js/diagrams.js @@ -100,6 +100,13 @@ function createLineGraph(containerId, raceData){ .attr("class", "focus") .attr("transform", "translate(" + graphPosWidth.posX + "," + graphPosWidth.posY + ")"); + focus.append("rect") + .attr("class", "zoom") + .attr("width", svgWidth) + .attr("height", graphHeight) + .attr("transform", "translate(" + graphPosWidth.posX + "," + graphPosWidth.posY + ")") + .call(zoom); + var context = svg.append("g") .attr("class", "context") .attr("height", smallGraphPosWidth.height)