Skip to content

LegendItem: The IsVisible property should be settable #3541

@blahetal

Description

@blahetal

Suggestion: I am displaying a plot which has multiple lines, for each line I display a legend. User can hide some of the lines but legend for that line is still visible - I need to recreate the Plot.Legend.ManualItems every time I do this and add/remove the affected lines from/to legend.

Plot.Legend.ManualItems.Add(new() {
   Label = "label1",
   IsVisible = true // add something like this - the default would be true
});

later in code

Plot.Legend.ManualItems[0].IsVisible = false;

Thanks for considering this,
Libor

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