DxChartSeriesLegendItem.Text Property
Specifies a legend item’s text.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public string Text { get; set; }
Property Value
Type | Description |
---|---|
String | A legend item’s text. |
Remarks
The Chart component generates a legend item’s text based on the corresponding series’s name. To override the generated legend item’s text, use the Text
property.
<DxChartLineSeries Name="2019" Filter="@((SaleInfo s) => s.Date.Year == 2019)"
SummaryMethod="Enumerable.Sum"
ArgumentField="@(s=> s.City)" ValueField="@(s => s.Amount)">
<DxChartSeriesLegendItem IconCssClass="oi oi-flag" Text="Last year"/>
</DxChartLineSeries>
See Also