Skip to content

Commit

Permalink
Fix y zoom and brush areas.
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherjoshsmith committed Mar 7, 2018
1 parent 5cb4d06 commit 4cb5633
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion afqbrowser/site/client/js/plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,9 @@ afqb.plots.zoomAxis = function () {
afqb.plots.newBrush = function (name) {
"use strict";
var brush = d3.svg.brush()
.x(afqb.plots.xAxisScale)
.x(d3.scale.linear()
.range([afqb.plots.axisOffset.left + afqb.plots.m.left, afqb.plots.w + afqb.plots.m.left])
.domain([0, 100]))
.on("brush", brushed)
.on("brushstart", brushStart)
.on("brushend", brushEnd);
Expand Down

0 comments on commit 4cb5633

Please sign in to comment.