(domain, m, format)
| 6475 | return d3.range.apply(d3, d3_scale_linearTickRange(domain, m)); |
| 6476 | } |
| 6477 | function d3_scale_linearTickFormat(domain, m, format) { |
| 6478 | var precision = -Math.floor(Math.log(d3_scale_linearTickRange(domain, m)[2]) / Math.LN10 + .01); |
| 6479 | return d3.format(format ? format.replace(d3_format_re, function(a, b, c, d, e, f, g, h, i, j) { |
| 6480 | return [ b, c, d, e, f, g, h, i || "." + (precision - (j === "%") * 2), j ].join(""); |
| 6481 | }) : ",." + precision + "f"); |
| 6482 | } |
| 6483 | d3.scale.log = function() { |
| 6484 | return d3_scale_log(d3.scale.linear().domain([ 0, Math.LN10 ]), 10, d3_scale_logp, d3_scale_powp); |
| 6485 | }; |
no test coverage detected