Here's my attempt at it with pie chart.

<html>
  <head>
    <script type="text/javascript" 
src="https://www.google.com/jsapi";></script>
    <script type="text/javascript">
      google.load("visualization", "1", {packages:["corechart"]});
      google.setOnLoadCallback(drawChart);
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
          ['Task', 'Hours per Day'],
          ['Work',     11],
          ['Eat',      2],
          ['Commute',  2],
          ['Watch TV', 2],
          ['Sleep',    7]
        ]);

        var options = {
          title: 'My Daily Activities'
        };

        var chart = new 
google.visualization.PieChart(document.getElementById('chart_div'));
        chart.draw(data, options);
      }
   /* Locations can be edited manually by updating 'wx_locID' below. 
 Please also update */
   /* the location name and link in the above div (wx_module) to reflect 
any changes made. */
   var wx_locID = '98501';

   /* If you are editing locations manually and are adding multiple modules 
to one page, each */
   /* module must have a unique div id.  Please append a unique # to the 
div above, as well */
   /* as the one referenced just below.  If you use the builder to create 
individual modules  */
   /* you will not need to edit these parameters. */
   var wx_targetDiv = 'wx_module_1232';

   /* Please do not change the configuration value [wx_config] manually - 
your module */
   /* will no longer function if you do.  If at any time you wish to modify 
this */
   /* configuration please use the graphical configuration tool found at */
   /* https://registration.weather.com/ursa/wow/step2 */
   var 
wx_config='SZ=180x150*WX=FHW*LNK=SSNL*UNT=F*BGI=boat*MAP=null|null*DN=sunminer.net*TIER=0*PID=1321037092*MD5=123f1e22777f0c5289a4e21d5737f728';

   document.write('<scr'+'ipt 
src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>');
 
 
    </script>
  </head>
  <body>
    <div id="chart_div" style="width: 900px; height: 500px;"></div>
<div id="wx_module_1232">
   <a href="http://www.weather.com/weather/local/98501";>Olympia Weather 
Forecast, WA (98501)</a>
</div>
  </body>
</html>


On Tuesday, July 10, 2012 2:15:55 PM UTC-7, shown wrote:
>
> I can't seem to integrate this Weather Channel script into any Google page.
>
> <div id="wx_module_1742">
>    <a href="http://www.weather.com/weather/local/98501";>98501 (Olympia 
> Weather Forecast, WA)</a>
> </div>
>
> <script type="text/javascript">
>
>    /* Locations can be edited manually by updating 'wx_locID' below. 
>  Please also update */
>    /* the location name and link in the above div (wx_module) to reflect 
> any changes made. */
>    var wx_locID = '98501';
>
>    /* If you are editing locations manually and are adding multiple 
> modules to one page, each */
>    /* module must have a unique div id.  Please append a unique # to the 
> div above, as well */
>    /* as the one referenced just below.  If you use the builder to create 
> individual modules  */
>    /* you will not need to edit these parameters. */
>    var wx_targetDiv = 'wx_module_1742';
>
>    /* Please do not change the configuration value [wx_config] manually - 
> your module */
>    /* will no longer function if you do.  If at any time you wish to 
> modify this */
>    /* configuration please use the graphical configuration tool found at */
>    /* https://registration.weather.com/ursa/wow/step2 */
>    var 
> wx_config='SZ=728x90*WX=FHW*LNK=SSNL*UNT=F*BGI=seasonal2*MAP=null|null*DN=
> ggec.co*TIER=0*PID=1321037092*MD5=df13eede52f7dfbd9177391832184da2';
>
>    document.write('<scr'+'ipt src="'+document.location.protocol+'//
> wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>');
>  
>  
> </script>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/7_u2UppMtskJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to