Skip to content

ChartLegendItem

Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

One line of a ChartLegend: its name, colour and whether the chart shows it (SDK 0.17.0).

public sealed class ChartLegendItem : ObservableObject

Inherits ObservableObject

ChartLegendItem(string key, string name, ChartColor color, string? detail = null)

One line of a ChartLegend: its name, colour and whether the chart shows it (SDK 0.17.0).

ChartColor Color { get; }

The line’s colour role; the chart draws the line in it.

string? Detail { get; }

A short number right of the name (“1,204”); null: none.

bool IsShown { get; set; }

The chart shows the line; a click on the legend line turns it on or off.

string Key { get; }

The id of the line (a camera’s id).

string Name { get; }

The line’s name in the legend (“Total”, a camera).