blazor-devexpress-dot-blazor-88248cd6.md
Defines an item that indicates a series in the legend.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public class DxChartSeriesLegendItem :
DxSettingsComponent<ChartSeriesLegendItemModel>
Use the IconCssClass property to alter the series icon in the legend. To customize the item text, you can define Text and TextTemplate properties.
<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">
<TextTemplate><b>Last year</b></TextTemplate>
</DxChartSeriesLegendItem>
</DxChartLineSeries>
Run Demo: Charts - Legend Customization
Object ComponentBase DxSettingsComponent<DevExpress.Blazor.Internal.ChartSeriesLegendItemModel> DxChartSeriesLegendItem
See Also