Breaking Change T1026454
Visible to All Users

Charts - The Width and Height properties now use the invariant culture

What Changed

The Chart component now uses InvariantCulture instead of the CurrentCulture property to parse the Width and Height property values.

Reasons for Change

In previous versions, if your development and target machines use cultures with different decimal separators, setting the Height and Width property values with a dot separator could cause incorrect Chart size calculation.
In 21.2, we introduced the following behavior:

  • If you use a dot as a separator, the Chart performs the AwayFromZero operation to convert the property value to the integer number that is treated as a value in pixels. For example, 60.4 becomes 60px.
  • If you use a comma as a separator, the Chart treats it as a digit grouping symbol and uses the obtained integer number as a value in pixels. For instance, the Chart parses 60,4 as 604px.

Impact on Existing Apps

This change impacts your application if the Width and Height property values rely on the CurrentCulture property in your application.

How to Upgrade Existing Apps

Specify the Width and Height property values in accordance with the InvariantCulture property.

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.