(scale, specifier)
| 110408 | } |
| 110409 | |
| 110410 | function thresholdFormat(scale, specifier) { |
| 110411 | var _ = scale[formats[scale.type]](), |
| 110412 | n = _.length, |
| 110413 | d = n > 1 ? _[1] - _[0] : _[0], |
| 110414 | i; |
| 110415 | |
| 110416 | for (i = 1; i < n; ++i) { |
| 110417 | d = Math.min(d, _[i] - _[i - 1]); |
| 110418 | } // 3 ticks times 10 for increased resolution |
| 110419 | |
| 110420 | |
| 110421 | return (0, _vegaScale.tickFormat)(0, d, 3 * 10, specifier); |
| 110422 | } |
| 110423 | |
| 110424 | function thresholdValues(thresholds) { |
| 110425 | const values = [-Infinity].concat(thresholds); |