Cannot read property 'getTime' of null in ChartRangeFilter for few range

374 views
Skip to first unread message

Himanshu Tongya

unread,
Apr 10, 2019, 5:49:28 AM4/10/19
to Google Visualization API
We are creating line charts from dashboard using control wrapper as ChartRangeFilter.
we are getting below error in few ranges on all charts because there is no data for that range.

Cannot read property 'getTime' of null

how to resolve this issue?

Himanshu Tongya

unread,
Apr 10, 2019, 5:50:08 AM4/10/19
to Google Visualization API
DeviceChart.png

xhcsurge

unread,
Jun 1, 2019, 7:24:38 AM6/1/19
to Google Visualization API
I have this problem as well! The error shows up when my line chart has only 1 record to load. I think I'm getting the error since about a year now. Before then, showing 1 record was no problem...





Op woensdag 10 april 2019 11:49:28 UTC+2 schreef Himanshu Tongya:

Pranjali Rastogi

unread,
Jan 8, 2020, 4:32:12 AM1/8/20
to Google Visualization API
I had this problem as well. 
Change this line

google.charts.load('current', {packages: ['corechart']});

To

google.charts.load('45', {packages: ['corechart']});

The first argument to google.charts.load is the version name or number, as a string. If you specify 'current', this causes the latest official release of Google Charts to be loaded. If you want to try the candidate for the next release, use 'upcoming' instead. In general there will be very little difference between the two, and they'll be completely identical except when a new release is underway.

This issue is resolved in version 45. 
Reply all
Reply to author
Forward
0 new messages