Re-enable zoom
This commit is contained in:
parent
449949c592
commit
30a7e93e7e
|
@ -100,6 +100,13 @@ function createLineGraph(containerId, raceData){
|
||||||
.attr("class", "focus")
|
.attr("class", "focus")
|
||||||
.attr("transform", "translate(" + graphPosWidth.posX + "," + graphPosWidth.posY + ")");
|
.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")
|
var context = svg.append("g")
|
||||||
.attr("class", "context")
|
.attr("class", "context")
|
||||||
.attr("height", smallGraphPosWidth.height)
|
.attr("height", smallGraphPosWidth.height)
|
||||||
|
|
Loading…
Reference in New Issue