Added
Fixed
- LTS measurement buckets (#45): charts could stay blank when Home Assistant returned only
mean/min/max(nosum,change, orstate)—typical forstate_class: measuremententities such as a template sensor summing cumulative sources withoutstate_class: total_increasing. The card now derives a per-bucket increment frommax - minwhen those three fields are absent, and skips buckets with a negative range. For true cumulative meters, prefer declaringtotal_increasingin HA so LTS exposessum. (#45) by @lukpep in #48 - Chart grid height consistency: The chart plot area now maintains a stable, identical height across all axis modes (adaptive rich / standard) and “today” positions.
containLabel: falsewith an always-fixedgrid.bottom = GRID_BOTTOM_PX(38 px) eliminates the ~20 px height drift that occurred whengrid.bottomswitched between0and42depending on whether “today” was in range. The axis-tick-to-label gap (AXIS_TICK_LABEL_GAP_PX) is reduced from 8 → 4 px, tightening the visible bottom margin. Y-axis label space is now an explicitGRID_LEFT_PX = 56 pxconstant instead of relying on EChartscontainLabelauto-expansion. All grid layout values are exported constants insrc/card/axis/x-axis-rich-styles.tsandsrc/card/echarts-renderer.ts. - Adaptive X-axis — “now” tick label: The highlighted tick for the current instant always uses a two-line layout so the substantive label (adaptive date/time) sits below other tick captions. The short localized “Now” line and collision-only branching are removed; spacing uses one full two-line budget whenever “now” is shown (
src/card/axis/x-axis-rich-styles.ts,src/card/echarts-renderer.ts).
New Contributors
Full Changelog: 1.0.1-beta...1.0.2