master-patched
Bob Monteverde 12 years ago
parent 787b58cd83
commit 0659ebee02

@ -3371,11 +3371,14 @@ nv.models.lineWithFocusChart = function() {
d3.transition(contextLinesWrap).call(lines2);
g.select('.x.brush')
.call(brush)
.selectAll('rect')
.attr('y', -5)
.attr('height', availableHeight2 + 4);
gBrush = g.select('.x.brush')
.call(brush);
gBrush.selectAll('rect')
//.attr('y', -5)
.attr('height', availableHeight2);
gBrush.selectAll(".resize").append("path").attr("d", resizePath);
x2Axis
@ -3441,6 +3444,22 @@ nv.models.lineWithFocusChart = function() {
function resizePath(d) {
var e = +(d == "e"),
x = e ? 1 : -1,
y = availableHeight2 / 3;
return "M" + (.5 * x) + "," + y
+ "A6,6 0 0 " + e + " " + (6.5 * x) + "," + (y + 6)
+ "V" + (2 * y - 6)
+ "A6,6 0 0 " + e + " " + (.5 * x) + "," + (2 * y)
+ "Z"
+ "M" + (2.5 * x) + "," + (y + 8)
+ "V" + (2 * y - 8)
+ "M" + (4.5 * x) + "," + (y + 8)
+ "V" + (2 * y - 8);
}
function onBrush() {
updateFocus();

4
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save