block by fogonwater d1bc4b9ac52da208766aa54f3ce127c0

Stacked area label placement #2

Full Screen

Picking best label positions in a stacked area chart by sweeping through each series and finding the largest minimum vertical difference wide enough to fit the label (if one exists).

A potential improvement might be to come up with a list of candidates for each area and then pick a combination that’s vertically aligned or reads left to right from top to bottom. It also might be desirable to pick the rightmost available space instead of the tallest?

See also: Stacked area label placement

forked from veltman‘s block: Stacked area label placement #2