This merges the BuildDiagramFromChunks
and CompareFeeRateDiagram
introduced in #29242 into a single CompareChunks
function, which operates on sorted chunk data rather than diagrams, instead computing the diagram on the fly.
This avoids the need for the construction of an intermediary diagram object, and removes the slightly arbitrary “all diagrams must start at (0, 0)” requirement.
Not a big deal, but I think the result is a bit cleaner and not really more complicated.