ScottPlot.NET
GitHub Repo stars

Interactive Vertical Line Segment

Vertical line segments can be expanded vertically by dragging the top and bottom edges, or slid horizontally by dragging the center line.

ScottPlot.Plot myPlot = new();

for (int i = 1; i <= 5; i++)
{
    double x = i;
    double y1 = i;
    double y2 = i * 2;
    myPlot.Add.InteractiveVerticalLineSegment(x, y1, y2);
}

myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Interactive category