DxChartSeriesLegendItem Class
Defines an item that indicates a series in the legend.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public class DxChartSeriesLegendItem :
DxSettingsComponent<ChartSeriesLegendItemModel>
Remarks
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>
Inheritance
Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.Internal.ChartSeriesLegendItemModel>
DxChartSeriesLegendItem
See Also