Chart generates in Chrome, Errors in IE11

3 posts, 1 answers
  1. Chris
    Chris avatar
    16 posts
    Member since:
    Dec 2015

    Posted 08 Jan Link to this post

    - Here is the error, only thrown in IE
    SCRIPT5007: Unable to get property 'getTime' of undefined or null reference
    File: kendo.all.min.js, Line: 71, Column: 8937 

    - I'm using v 2015.3.1111

    - The div containing the charts is not drawn (display: none) while generating the charts

    - Here is my JS to generate the chart:

    $(chartId).kendoChart({
        title: {
            text: data.DataSet.ChannelData[i].ChannelName
        },
        series: [{
            name: "Data",
            visibleInLegend: false,
            tooltip: {
                template: "value: #= value.y #, time: #= FormatDate(value.x) #",
                visible: true
            },
            type: "scatterLine",
            xField: "Time",
            yField: "Value",
            data: formattedData,
            markers: {
                visible: false
            }
        }],
        chartArea: {
             
            width: (data.Columns == 3 ? 358 : (data.Columns == 2 ? 537 : 1074))
        },
        xAxis: [{
            type: "date",
            baseUnit: "seconds"
        }],
        yAxis: [{
            axisCrossingValue: [-50000]
        }],
        pannable: true,
        zoomable: true,
    });

     

     

  2. Chris
    Chris avatar
    16 posts
    Member since:
    Dec 2015

    Posted 08 Jan in reply to Chris Link to this post

    Errors in Firefox as well with the same error.
  3. Kendo UI is VS 2017 Ready
  4. Answer
    T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 12 Jan Link to this post

    Hi,

    The error is likely triggered due to the specific data set used for the chart.

    Can you please check that the Time field contains a true Date instance?

    Regards,
    T. Tsonev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top