Opening a Home Assistant history timeline with tens of thousands of state changes could freeze the interface for seconds. Petar Petrov limits the amount drawn to the chart’s device-pixel width instead of laying out a separate rectangle for every change.
State periods wide enough to show keep their exact boundaries. Shorter changes share a screen-sized slice represented by the state occupying most of it, keeping dense histories readable without drawing invisible detail.