You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since I've updated to 1.1.0 I can't access DateFormat. I might need to use the new google-chart-loader but the docs, readme and release notes didn't give any indication of that.
My dates are as EPOC (1470240006293) (as var d in this example), I was using:
var dateFormatter = new google.visualization.DateFormat({
pattern: "d/MM H:mm"
});
var theDate = [dateFormatter.formatValue(new Date(parseInt(d)))];
It throws: my-charts.html:102 Uncaught TypeError: Cannot read property 'DateFormat' of undefined
...maybe I've removed something else while I was updating.
The text was updated successfully, but these errors were encountered:
You are getting that error because the library has not been loaded yet. I'm kind of glad you're getting that error, now as it reveals a race condition that was very hard to debug with the previous version. My team suffered a huge setback because of it.
Currently, a few objects (DataTable, DataView, Query) are exposed, but there are others that may be desired.
Do you have an idea for a nice way to expose the other types?
The problem with using drawn is that you probably need the formatter to create the data set. drawn isn't true until the chart data is loaded and the data is actually drawn.
Since I've updated to 1.1.0 I can't access DateFormat. I might need to use the new google-chart-loader but the docs, readme and release notes didn't give any indication of that.
My dates are as EPOC (1470240006293) (as
var d
in this example), I was using:It throws:
my-charts.html:102 Uncaught TypeError: Cannot read property 'DateFormat' of undefined
...maybe I've removed something else while I was updating.
The text was updated successfully, but these errors were encountered: