ScottPlot.NET
GitHub Repo stars

Legend Wrapping

Legend items may wrap to improve display for a large number of items

This code sample is specific to ScottPlot 5 (details)
ScottPlot.Plot myPlot = new();

for (int i = 1; i <= 10; i++)
{
    var sig = myPlot.Add.Signal(Generate.Sin(51, phase: .02 * i));
    sig.Label = $"Signal #{i}";
}

myPlot.Legend.IsVisible = true;
myPlot.Legend.Orientation = Orientation.Horizontal;
myPlot.Legend.AllowMultiline = true;

myPlot.SavePng("demo.png", 400, 300);

Edit on GitHub