Re-enable zoom

This commit is contained in:
Jan Philipp Timme 2017-12-31 15:25:42 +01:00
parent 449949c592
commit 30a7e93e7e

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)