Reformat brushed()
This commit is contained in:
parent
d16a86a0c7
commit
f90b73ce73
@ -507,9 +507,7 @@ function createLineGraph(containerId, raceData){
|
|||||||
if (d3.event.sourceEvent && d3.event.sourceEvent.type === "zoom") return; // ignore brush-by-zoom
|
if (d3.event.sourceEvent && d3.event.sourceEvent.type === "zoom") return; // ignore brush-by-zoom
|
||||||
var s = d3.event.selection || x2.range();
|
var s = d3.event.selection || x2.range();
|
||||||
x.domain(s.map(x2.invert, x2));
|
x.domain(s.map(x2.invert, x2));
|
||||||
|
|
||||||
updateElements();
|
updateElements();
|
||||||
|
|
||||||
// Update the "preview" rectangle
|
// Update the "preview" rectangle
|
||||||
svg.select(".zoom").call(zoom.transform, d3.zoomIdentity
|
svg.select(".zoom").call(zoom.transform, d3.zoomIdentity
|
||||||
.scale(graphPosWidth.width / (s[1] - s[0]))
|
.scale(graphPosWidth.width / (s[1] - s[0]))
|
||||||
|
Loading…
Reference in New Issue
Block a user