(scale12, count, values)
| 127208 | return format1; |
| 127209 | } |
| 127210 | function tickLog(scale12, count, values) { |
| 127211 | const ticks = tickValues(scale12, count), base = scale12.base(), logb = Math.log(base), k = Math.max(1, base * count / ticks.length); // apply d3-scale's log format filter criteria |
| 127212 | const test = (d)=>{ |
| 127213 | let i = d / Math.pow(base, Math.round(Math.log(d) / logb)); |
| 127214 | if (i * base < base - 0.5) i *= base; |
| 127215 | return i <= k; |
| 127216 | }; |
| 127217 | return values ? ticks.filter(test) : test; |
| 127218 | } |
| 127219 | const symbols = { |
| 127220 | [Quantile]: "quantiles", |
| 127221 | [Quantize]: "thresholds", |
no test coverage detected