DxChartSeriesLegendItem Class

Defines an item that indicates a series in the legend.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

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="2015" Filter="@((SaleInfo s) => s.Date.Year == 2015)" 
                   AggregationMethod="@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.ChartSeriesLegendItemModel>
DxChartSeriesLegendItem
See Also