Breaking Change T1022262
Visible to All Users

Charts – Color properties now support Alpha channel

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>

blazor-dxchart-no-alpha-channel.png

In v21.2, the Chart takes the alpha channel value into account. Now, the series has another transparency value with the same code.

blazor-dxchart-color-with-alpha-channel.png

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.

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.