Table of Contents

Interface IHasLegend

Namespace
BlazOrbit.Charts.Abstractions
Assembly
BlazOrbit.Charts.dll

Implemented by chart types that emit an interactive legend. The legend renders one entry per series (or slice for pie / donut) and supports click-to-toggle visibility.

public interface IHasLegend

Properties

LegendPosition

Anchor of the legend block relative to the plot area.

BOBChartLegendPosition LegendPosition { get; }

Property Value

BOBChartLegendPosition

OnLegendToggle

Fired when the user toggles a legend entry. The argument is the Label of the affected series / slice.

EventCallback<string> OnLegendToggle { get; }

Property Value

EventCallback<string>

ShowLegend

Whether the legend is visible. Defaults to true.

bool ShowLegend { get; }

Property Value

bool