diff --git a/static/shared.js b/static/shared.js index 0c0e40f..1aea0fc 100644 --- a/static/shared.js +++ b/static/shared.js @@ -49,8 +49,9 @@ export const SCALE_RAIN = [ { c: "wet-3", label: "Light", range: "10–25" }, { c: "wet-4", label: "Brisk", range: "25–40" }, { c: "wet-5", label: "Typical", range: "40–60" }, - { c: "wet-7", label: "Heavy", range: "60–90" }, - { c: "wet-8", label: "Very Heavy", range: "90–99" }, + { c: "wet-6", label: "Heavy", range: "60–90" }, + { c: "wet-7", label: "Very Heavy", range: "90–95" }, + { c: "wet-8", label: "Severe", range: "95–99" }, { c: "wet-9", label: "Extreme", range: ">99" }, ]; @@ -212,7 +213,10 @@ export function distStrip(buckets, showCount) { const bar = h ? `
` : `
`; - const range = lo != null ? fmtMetricRange(b.unit, lo, hi) : ""; + // Dry precip days are all zero, so a "0–0" range is noise — the bar and its + // share say all there is to say. + const isDryPrecip = b.unit === "precip" && b.group === "dry"; + const range = (lo != null && !isDryPrecip) ? fmtMetricRange(b.unit, lo, hi) : ""; return `
` +