Skip to content

πŸš€ New Chart Types

Choose a tag to compare

@cataseven cataseven released this 02 Jul 11:59
8fac790

✨ Three new chart modes: Box Plot, Waterfall & Histogram

πŸ“¦ Box Plot β€” chart_mode: box

Min / Q1 / median / Q3 / max boxes per time bucket, computed from the dense source samples (independent of points_per_hour). Bucket width follows group_by, or is picked automatically from the window.

Box Plot

Use it when the question is "what's typical, and how much does it spread?"

  • 🌑️ Room temperature or humidity β€” daily spread over a month; instantly shows unstable rooms and day/night swing
  • πŸ–₯️ CPU / RAM / load sensors β€” hourly distribution profiles instead of a noisy line
  • πŸ“Ά Ping / latency / Wi‑Fi signal β€” consistency at a glance: a tall box means jitter
  • ⚑ EPEX / Nordpool price sensors β€” the daily price range and where the median sits
  • β˜€οΈ Solar production per day/week β€” spread across the period, not just the total

Box Plot vs Candlestick β€” they look like cousins, but the body means something different. A candlestick body is open β†’ close of the bucket: direction matters, color tells you up/down, and the order of values is essential β€” it's a momentum chart. A box plot body is Q1 β†’ Q3 with the median inside: order is irrelevant, there is no open/close and no direction. "Where did it go?" β†’ candlestick. "What was typical, and how much did it spread?" β†’ box plot.

πŸͺœ Waterfall β€” chart_mode: waterfall

Each entity is one +/βˆ’ step of a running total with an automatic Total bar (hide with waterfall_total: false) and dashed connectors β€” the classic bridge chart. The step value is the entity's aggregate over the visible window; the default aggregate is sum in this mode.

waterfall

Use it when the question is "how do the parts add up to the total?"

  • πŸ”Œ Energy balance β€” grid import + solar production βˆ’ grid export = real house consumption (the killer use case; see README example)
  • πŸ’Ά Monthly budget β€” income steps up, rent/groceries/utilities step down, Total = what's left
  • πŸ”‹ Battery balance β€” charged vs discharged energy over the window
  • 🏠 Per-room / per-circuit consumption summing to the house total
  • πŸ’§ Water or gas: inflows vs usages

For total_increasing counters (energy/water/gas meters) set aggregate_func: diff β€” a plain sum would add the meter reading repeatedly instead of the consumption. Use invert: true for the subtracting steps.

πŸ“Š Histogram β€” chart_mode: histogram

The value-frequency distribution over the visible window: X = value ranges (bins), Y = how often the value landed there. Time is discarded entirely. Bin count is automatic (Freedman–Diaconis) or fixed via histogram_bins; multiple entities share the same bins side by side, and X labels sit centered under the bars showing each bin's midpoint.

histogram

Use it when the question is "what value does it usually sit at, and how often?"

  • 🌑️ Thermostat reality check β€” how much time the room actually spends inside the comfort band
  • πŸ–₯️ CPU / RAM / load sensors β€” hourly distribution profiles instead of a noisy line
  • ⚑ Electricity price β€” how often the price lands above/below your automation threshold
  • πŸ”Œ Appliance power draw β€” idle vs active shows up as a two-humped (bimodal) distribution
  • πŸ“Ά Ping / signal strength β€” one tight hump = healthy, a long tail = intermittent problems
  • πŸš— EV state of charge β€” the SOC ranges the car actually lives in

Histogram vs Bar β€” a bar chart's X axis is time: each bar is the value of one time slot ("CPU was 62% at 14:00"). A histogram's X axis is value ranges and Y is the count: "CPU spent most of this month in the 55–65% band". Bar tells you what happened when; histogram tells you what's typical and how often. Technically the bar chart draws the points_per_hour display series, while the histogram counts the dense source samples.

πŸ“ Docs

  • README: new Box Plot / Waterfall / Histogram sections with anatomy, YAML examples, an option reference (waterfall_total, histogram_bins), "Box Plot vs Candlestick" and "Histogram vs Bar" explainers, and three new columns in the Chart Mode Compatibility table.