Bug Report T801302
Visible to All Users

Chart throws the "Cannot read property 'valueOf' of null" error when a discrete axis has null values

created 6 years ago

Hello,
we are facing a problem with the chart control when having discrete axis and null values. Have a look at the following sample and find the error in the console.
Error: ERROR TypeError: Cannot read property 'valueOf' of null

https://codesandbox.io/s/standard-bar-devextreme-charts-4shnx

Null values were handled correctly in prior versions.

Kind regards,
Jan

Comments (1)
DevExpress Support Team 6 years ago

    Hello Jan,

    Thank you for the sample. I changed the DevExtreme version to v.18.2.9 and this error doesn't appear. So I need additional time for detailed research. We will update this ticket when we have any results.

    Answers approved by DevExpress Support

    created 6 years ago (modified 4 years ago)

    We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

    Note: Hotfixes may be unavailable for betas/updates set for release within a week.

    Additional information:

    The issue re-appeared in the latest version 20.2.7

      Comments (1)
      CH CH
      Christoph Herold 4 years ago

        It looks like this bug has been reintroduced in a recent version. Here is a new example:
        DevExtreme Demo (csb.app)
        The behavior is the same as described before: When you have a discrete axis with NULL values, you get a JS error "Cannot read property 'valueOf' of null".

        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.