block by veltman 3195a6c9f7426ee699b18ee4c8e99181

Automatic label placement along a path #2

Full Screen

A method for automatically finding the best eligible label position and font size for a label that’s going to go along a path inside of an area, similar to this example but with two embellishments:

The measurement gets thrown off a little bit by the curve function and the fact that text is rotated letter by letter instead of continuously, but the results seem good enough.

See also: Automatic label placement along a path Streamgraph label positions #2 Stacked area label placement #2

index.html