Home forums Report Bugs Mozilla Firefox Graph Rendering Issue

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #14838

    I have earlier raised the issue and sent some sample code for your reference but as per reply to me that my date is wrong. Now again i am sending this issue to you, the graph gets value from my ASP .Net page format is JSON data.
    Sample data is

    {“x”:”4-12-2017 10:31″,”y”:391.05438232421875 },
    {“x”:”4-11-2017 10:28″,”y”:7.336277961730957 },
    {“x”:”4-10-2017 10:28″,”y”:0.0034894943237304688 },
    {“x”:”4-9-2017 10:27″,”y”:2.0697469711303711 },
    {“x”:”4-8-2017 10:27″,”y”:10.662570953369141 },
    {“x”:”4-7-2017 10:28″,”y”:10.502707481384277 },
    {“x”:”4-6-2017 10:28″,”y”:79.114761352539062 },
    {“x”:”4-5-2017 10:27″,”y”:2.6526021957397461 }

    This is the data as array of object i am pushing into Graph from my code as X and Y value.
    With above data the graph is rendering perfectly in Google Chrome and Internet Explorer. But in Mozilla Firefox the graph which contains date as above shows Blank.

    I did research using developer tool in Google Chrome it returns value like
    x: Wed Apr 12 2017 10:31:00 GMT + 0530 (Indian Standard Time)
    y: 391.05
    x: Tue Apr 11 2017 10:28:00 GMT + 0530 (Indian Standard Time)
    y: 7.33
    x: Mon Apr 10 2017 10:28:00 GMT + 0530 (Indian Standard Time)
    y: 0.0034
    x: Sun Apr 09 2017 10:27:00 GMT + 0530 (Indian Standard Time)
    y: 2.06

    Now what is issue can you check with the sample data.




    The date that you have provided as x value isn’t valid date in JavaScript. While Chrome and IE translates your date internally to a valid date, Firefox doesn’t. That’s why, your chart isn’t rendered on Firefox. In order to fix this issue, please format your date accordingly. For valid JavaScript date format, please refer this.

    Bivek Singh

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

You must be logged in to reply to this topic.