(base)
| 6551 | return -Math.exp(-x); |
| 6552 | } |
| 6553 | function d3_scale_logNice(base) { |
| 6554 | base = Math.log(base); |
| 6555 | var nice = { |
| 6556 | floor: function(x) { |
| 6557 | return Math.floor(x / base) * base; |
| 6558 | }, |
| 6559 | ceil: function(x) { |
| 6560 | return Math.ceil(x / base) * base; |
| 6561 | } |
| 6562 | }; |
| 6563 | return function() { |
| 6564 | return nice; |
| 6565 | }; |
| 6566 | } |
| 6567 | d3.scale.pow = function() { |
| 6568 | return d3_scale_pow(d3.scale.linear(), 1); |
| 6569 | }; |