What Changed
You can now specify color transparency (sRGB
alpha channel) in the Chart and its nested components.
Reasons for Change
In previous versions, the Color.A property value did not affect color transparency. In the following code, the Chart treats the Color="Color.FromArgb(48, 95, 54, 141)"
line as Color="Color.FromArgb(95, 54, 141)"
.
Razor<DxChart Data="@SalesData">
<DxChartLineSeries Name="2019"
Filter="@((SaleInfo s) => s.Date.Year == 2019)"
ArgumentField="@(s => s.City)"
ValueField="@(s => s.Amount)"
SummaryMethod="Enumerable.Sum"
Color="Color.FromArgb(48, 95, 54, 141)" />
</DxChart>
In v21.2, the Chart takes the alpha channel value into account. Now, the series has another transparency value with the same code.
Impact on Existing Apps
This change impacts your application if you specified the alpha channel value of the color.
How to Revert to Previous Behavior
Remove the sRGB
alpha channel value definition.