DxChartSeries.Name Property

Specifies a name for the series.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public string Name { get; set; }

Property Value

Type Description
String

A series name.

Remarks

Use the Name property to specify the name of the series. This name is used as a corresponding legend item’s text.

<DxChart Data="@ChartsData">
    <DxChartLineSeries Name="2017" Filter="@((SaleInfo s) => s.Date.Year == 2017)"
                       ArgumentField="@(s => s.City)" ValueField="@(s => s.Amount)" />
    <DxChartLineSeries Name="2018" Filter="@((SaleInfo s) => s.Date.Year == 2018)"
                       ArgumentField="@(s => s.City)" ValueField="@(s => s.Amount)" />
    <DxChartLineSeries Name="2019" Filter="@((SaleInfo s) => s.Date.Year == 2019)"
                       ArgumentField="@(s => s.City)" ValueField="@(s => s.Amount)" />
    <DxChartLegend Position="RelativePosition.Outside" HorizontalAlignmentntalAlignment.Right" />
</DxChart>

Chart Line Series

Online Demo

Charts - Customization

See Also