This is a migrated thread and some comments may be shown as answers.

Chart generates in Chrome, Errors in IE11

2 Answers 86 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 08 Jan 2016, 03:38 PM

- 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 Answers, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 1
answered on 08 Jan 2016, 03:44 PM
Errors in Firefox as well with the same error.
0
Accepted
T. Tsonev
Telerik team
answered on 12 Jan 2016, 03:25 PM
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!
 
Tags
Charts
Asked by
Chris
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or