Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Google Visualization on the Dashboard

Vote:
 

I have created a simple gadget that is suppossed to show a gauge control on the Dashboard.

I have invluded the script as follows in the gadgets module.config

<clientResources>
  <add name="sample.gauge.script" path="http://www.google.com/jsapi" resourceType="Script" sortIndex="1" />
  <add name="sample.gauge.script" path="Content/GoogleGauge.js" resourceType="Script" sortIndex="2" />
</clientResources>

<clientModule>
  <requiredResources>
    <add name="sample.gauge.script" />
  </requiredResources>
</clientModule>

Gadget loads fine, all scripts load fine.

But, I get this error: TypeError: google.visualization is undefined

For some reasson Google.load() is not able to load the pagkage. Running the sample in a standalone html page is no problem.

google.load('visualization', '1', { packages: ['gauge'] }); // This line is supossed to load the packages but is does not, no errors though.

This line fails:

gaugeData = google.visualization.arrayToDataTable([

 

#76923
Nov 06, 2013 13:13
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.