Hi Drew,

Are you using both the jsapi and gstatic charts/loader.js in the document
for a reason?  This is generally not a good idea, and you should probably
just switch to the newer gstatic charts/loader.js.

On Mon, Jun 5, 2017 at 2:01 PM, Drew Hayward <[email protected]> wrote:

> I am trying to make a dashboard with both the Embed API and the
> Visualization API. I can get both to install and run, but it appears to
> cause errors on the draw() of charts.
> I get a "You called the draw() method with the wrong type of data rather
> than a DataTable or DataView" when inputting the datatable from the Embed
> API query.
>
> Some forums have said it was an error from using both the old and new
> loader.
>
> Currently I load:
> <script type="text/javascript" src="https://www.google.com/jsapi
> "></script>
> <script type="text/javascript" src="https://www.gstatic.com/
> charts/loader.js"></script>
> And then in a separate script directly after:
> // Load script provided in the Google Analytics Docs
> loadGAnalytics();
>
> google.load = google.load || google.charts.load;
> google.setOnLoadCallback = google.setOnLoadCallback || google.charts.
> setOnLoadCallback;
>
> google.charts.load('current', { packages: ['corechart', 'table', 'line',
> 'geochart'] });
>
> Thank you!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to google-visualization-api@
> googlegroups.com.
> Visit this group at https://groups.google.com/
> group/google-visualization-api.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-visualization-api/cc321de9-1875-4d6f-bc9d-
> caacb52ced42%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/cc321de9-1875-4d6f-bc9d-caacb52ced42%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge MA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJO3VELHJVUqL-Jx%2BLOL0J63K0C0kJxe7o%2BU0F2ugrAzmw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to