(locale, scale16, count, type, specifier, formatType, noSkip)
| 127249 | } |
| 127250 | const isDiscreteRange = (scale15)=>symbols[scale15.type] || scale15.bins; |
| 127251 | function labelFormat(locale, scale16, count, type, specifier, formatType, noSkip) { |
| 127252 | const format2 = formats[scale16.type] && formatType !== Time && formatType !== UTC ? thresholdFormat(locale, scale16, specifier) : tickFormat(locale, scale16, count, specifier, formatType, noSkip); |
| 127253 | return type === SymbolLegend && isDiscreteRange(scale16) ? formatRange(format2) : type === DiscreteLegend ? formatDiscrete(format2) : formatPoint(format2); |
| 127254 | } |
| 127255 | const formatRange = (format3)=>(value, index, array)=>{ |
| 127256 | const limit = get(array[index + 1], get(array.max, Infinity)), lo = formatValue(value, format3), hi = formatValue(limit, format3); |
| 127257 | return lo && hi ? lo + " \u2013 " + hi : hi ? "< " + hi : "\u2265 " + lo; |
no test coverage detected