I'm following the tutorial here: https://developers.google.com/analytics/devguides/reporting/embed/v1/devguide
I'm sure I've added the Client Id
and Javascript Origin
correctly.
But the chart doesn't appear and I get this error:
Uncaught TypeError: window.google.load is not a function
It seems to appear every time I run the execute()
function
Anyone else run into this problem?
The Embed API provides you with a chart component that is both a Google chart as well as a report object in one. This greatly simplifies the process for displaying data as the chart object will run your reports behind the scene and automatically update itself with the results.
When embedding google maps as a web object in workbooks, the following errors may occur: The Google Maps Embed API must be used in an iframe When accessing a published version of the workbook, the below errors may occur: www.google.com refused to connect Or
Google APIs must use the canonical error codes defined by google.rpc.Code . Individual APIs must avoid defining additional error codes, since developers are very unlikely to write logic to handle a large number of error codes.
For Google APIs, the primary error domain is googleapis.com, and the corresponding error reasons are defined by google.api.ErrorReason enum. For more information, see the google.api.ErrorReason definition.
After much tossing and turning, I finally got the answer, all I had to do was add
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
to the application.html.erb file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With