Back in 2021, I came across Harry Steven’s Observable notebook outlining an automated approach for intelligently directly labeling line series. As with anyone, I’ve made my fair share of spaghetti plots where labeling data can be somewhat complicated, so I really liked Harry’s fairly clear, straightforward, yet quite smart approach. Thus, I had to learn how to implement it and why not do it via a tutorial that I can reference later - it worked last time!

Thus, I present my recreation of Harry Steven’s tutorial for directly labeling lines!

Recreating Harry Steven's "Directly labeling lines"