block by tomgp 39e33b72589976c3305d3ad1aa3e0764

Simple end to end layout (for stacked area etc.)

Super simple layout function for arranging elements end to end Note, I don’t work in any scale here, just the values. Scale can be applied after the layout function the value layedOut.accumulatedValue can be used to set the max extent of the scales domain;

layoutstack.js