Skip to content

Commit

Permalink
exaggerate "above" and "below" more
Browse files Browse the repository at this point in the history
partly to illustrate interaction between #667 and alignYAxes
  • Loading branch information
gordonwoodhull committed Jul 17, 2016
1 parent f807b53 commit 8fa029c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/examples/align-axes.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@
function distribution(posi, scale) {
var vals = d3.range(N).map(gen);
switch(posi) {
case 'above': return distribute(vals, 0, scale);
case 'above': return distribute(vals, scale*0.2, scale*1.2);
case 'upward': return distribute(vals, -scale*0.1, scale*0.9);
case 'even': return distribute(vals, -scale*0.5, scale*0.5);
case 'downward': return distribute(vals, -scale*0.9, scale*0.1);
case 'below': return distribute(vals, -scale, 0);
case 'below': return distribute(vals, -scale*1.2, -0.2);
default: throw 'no';
}
}
Expand Down

0 comments on commit 8fa029c

Please sign in to comment.