Re-enable zoom

This commit is contained in:
Jan Philipp Timme 2017-12-31 15:25:42 +01:00
parent 449949c592
commit 30a7e93e7e
1 changed files with 7 additions and 0 deletions

View File

@ -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)