Back to Devexpress

LegendBaseSettings<TComponent, TModel>.Visible Property

blazor-devexpress-dot-blazor-dot-base-dot-legendbasesettings-2.md

latest1.5 KB
Original Source

LegendBaseSettings<TComponent, TModel>.Visible Property

Specifies whether the legend is visible.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public bool? Visible { get; set; }

Property Value

TypeDescription
Nullable<Boolean>

true to display the legend; otherwise, false.

|

Remarks

The following code snippet displays the legend in the DxBarGauge component:

razor
<DxBarGauge Width="50%"
            Height="500px"
            StartValue="0"
            EndValue="100"
            Values="@Values">
    <DxBarGaugeLegendSettings Visible="true"
                              ItemCaptions="@LegendItemCaptions"/>
    @* ... *@
</DxBarGauge>

@code {
    double[] Values = new double[] { 47.27, 65.32, 84.59, 81.86, 99 };
    string[] LegendItemCaptions = new string[] { "Metacritic", "Ratingraph.com", "Rotten Tomatoes", "IMDb", "TV.com" };
}

See Also

LegendBaseSettings<TComponent, TModel> Class

LegendBaseSettings<TComponent, TModel> Members

DevExpress.Blazor.Base Namespace