Skip to main content

DxChartSeries.Name Property

Specifies the name for the series.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Description
String

The 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.

Note

The Name property value must be unique for each series.

<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

See Also