Back to Devexpress

DxBarGaugeLegendSettings.ItemCaptions Property

blazor-devexpress-dot-blazor-dot-dxbargaugelegendsettings.md

latest1.4 KB
Original Source

DxBarGaugeLegendSettings.ItemCaptions Property

Specifies captions for legend items.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public string[] ItemCaptions { get; set; }

Property Value

TypeDescription
String[]

An array of item captions.

|

Remarks

The following code snippet adds custom captions to legend items in DxBarGauge:

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

DxBarGaugeLegendSettings Class

DxBarGaugeLegendSettings Members

DevExpress.Blazor Namespace