Skip to content

Line: add option to control whether line or markers appear on top #4610

@nullsoftware

Description

@nullsoftware

Suggestion: Add possibility to change rendering order of markers (circles).

Currently, line renders on top of markers (circles). It would be nice to render them on top of line.
Or maybe even better to have it on top always, because I don't see a need to draw it before lines.

public static LinePlot CreateDraggableLine(Plot plot, Coordinates start, Coordinates end)
{
    var line = plot.Add.Line(start, end);
    line.LineWidth = 3;
    line.Color = ScottPlot.Color.FromHex("#FFA500");
    line.MarkerShape = MarkerShape.FilledCircle;
    line.MarkerColor = ScottPlot.Color.FromHex("#FF0000");
    line.MarkerSize = 10;
    line.MarkerLineWidth = 0;
    
    return line;
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions