jQWidgets Forums

jQuery UI Widgets Forums Chart Error: attribute y: Expected length, "NaN".

This topic contains 4 replies, has 4 voices, and was last updated by  Hristo 5 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author

  • Kapil
    Participant

    I am getting this message multiple time
    Error: <rect> attribute y: Expected length, “NaN”. jqxdraw.js


    Stanislav
    Participant

    Hello kapiljain,

    Can you please give us a little bit more information on this issue.
    Maybe an example or a way to re-create it.

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/


    IanAber
    Participant

    I am seeing the same or similar problems with dial and chart objects. I have a couple WEB pages that update several controls every second to show various values in my Solar voltaic and hot water off grid house management system. I can give you a URL to connect to them and see the issue. As a client I am using OS-X 10.14.5 running Safari 12.1.1. The page will run for a short while then suddenly spit out a bunch of these errors. It does not seem to be a specific control and I have not been able to identify specific values that cause it to happen. I can send you the URL via private message if you would find it useful to be able to recreate the issue.


    IanAber
    Participant

    It would seem that this problem is related to animation. Disabling animation by setting animationDuration to 0 I was able to run my page for an hour or so without error. As soon as I reintroduced the animation it failed very quickly. I set the animationDuration value to 300, since I have a 1 second update loop, to try and ensure that any animation after a value change would be complete before a new value was applied but I still got the errors. I will leave it disabled for a while longer and see what I get. I believe I am using the latest version version-8 of the widgets library.

    [Error] Error: Invalid value for <rect> attribute y=”NaN”
    attr (jqxdraw.js:8:13346)
    _setRectAttrs (jqxgauge.js:8:56703)
    _performColumnPointerLayout (jqxgauge.js:8:56376)
    _setValue (jqxgauge.js:8:55749)
    (anonymous function) (jqxgauge.js:8:33057)
    [Error] Error: Invalid value for <rect> attribute height=”NaN”
    attr (jqxdraw.js:8:13346)
    _setRectAttrs (jqxgauge.js:8:56797)
    _performColumnPointerLayout (jqxgauge.js:8:56376)
    _setValue (jqxgauge.js:8:55749)
    (anonymous function) (jqxgauge.js:8:33057)


    Hristo
    Participant

    Hello IanAber,

    It will be better if you could provide us with more details.
    You could send here or on our Support Team (support@jqwidgets.com) your example or also, your code of the jqxChart (but it seems that you may use another widget – jqxGauge).
    It is possible if make changes too fast and the widget animation is not finished yet that can cause an issue this.
    I tested this example and it seems to work fine.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.