blazor-devexpress-dot-blazor-dot-dxchartseries-2f0a9272.md
Specifies the series color.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public Color Color { get; set; }
| Type | Description |
|---|---|
| Color |
The color.
|
Use the Color property to specify the series line color.
The following example shows possible ways to define the color:
<DxChart Data="@ChartsData">
<DxChartLineSeries Name="2017"
Filter="@((SaleInfo s) => s.Date.Year == 2017)"
Color="Color.Red"
ArgumentField="@(s => s.City)"
ValueField="@(s => s.Amount)" />
<DxChartLineSeries Name="2019"
Filter="@((SaleInfo s) => s.Date.Year == 2019)"
Color="@(Color.FromArgb(0, 0, 255))"
ArgumentField="@(s => s.City)"
ValueField="@(s => s.Amount)" />
<DxChartLegend Position="RelativePosition.Outside" HorizontalAlignment="HorizontalAlignment.Right" />
</DxChart>
See Also