Skip to content

Legend: Add option to configure visibility for manually added items #3931

@cataclism

Description

@cataclism

I think that the title is pretty much self explanatory, but it would be awesome if legend labels could be toggled in visibility, so that in a multi signal scenario, when toggling the signal's visibility, one could also toggle its lable visibility

The utilization could be of the type in a multi signal scenario with a certain visibility condition (suppose that we need to toggle visibility off):

private LegendItem[] signalLegendItem = new LegendItem[8];
private readonly ScottPlot.Plottables.SignalXY[] signal= new SignalXY[8];

for (int i=0; i<8; i++)
{
      if (visibilityConditionIsMet)
          {
               signalLegendItem.IsVisible=false; 
               signal.IsVisible=false;
          {
}

NOTE:
In here i've used a SignalXy but it applies to any type of signal

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions