MCPcopy Create free account
hub / github.com/idank/explainshell / d3_scale_logNice

Function d3_scale_logNice

explainshell/web/static/js/d3.v3.js:6553–6566  ·  view source on GitHub ↗
(base)

Source from the content-addressed store, hash-verified

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 };

Callers 1

d3_scale_logFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected