Using Google Visualizations in Google Sites

Introduction: Using Google Visualizations in Google Sites

Alright, I'm going to have to grill Google for being so thick as to block their own product...


Anyways, Google Visualizations is a great way to make pretty, official, and interactive charts.

However, Google Sites has no easy way (that I have seen) of embedding their charts into their sites.

Step 1: Creating a Chart

First, we need a chart to do so...

If you have no experience with JavaScripting, or Google Visualizations, I suggest going to the Google Code Playground

Once you have the desired code, create a new HTML document (using notepad or notepad++) and copy the HTML code into the text editor.

Save as an HTML (*.htm, or *.html, it really doesn't matter)

Step 2: Creating a Google Site

Alright, now you need something to put this chart in!

I particularly like Google sites because:

1. It's Free
2. It's Easy
3. It make website noobs like me look good with professional looking websites

You need a Google Account to do this (don't worry! it's really easy to sign up!)

Sign In, or create an Account at

Now, create a new site once you're signed in and everything

Fill out the necessary information to create the type of site you want

Step 3: Hosting Your HTML Doc With the Chart

Now comes the round-a-bout way to host this chart on your Google Site

We need to find another website creator that can host HTML doc and permits viewing of such documents without downloading them (that is the sole reason Google Sites CANNOT be used for this step, because they do not permit the viewing of "unrecognized file types" a.k.a. anything besides pictures and office documents (*.doc, *.xls, etc...)

I use WebStarts to do this

Yeah, they send some annoying emails saying they will give you funding for advertising, but you can just apply a filter to prevent your discomfort of such emails

Once again, you need to sign up for this and create another site.

Once you've done that, you need to upload your HTML doc to the new (webstarts) website

After you've attached the document, you need to find the URL of the attached HTML

The URL should look something like:

Credit to Google for the example chart

Of course, your URL will be a little different depending on the name of your document, and domain of your webstarts website.

Step 4: Placing the Chart in Your Google Sites

Now, don't freak out...

We are going to do some HTML editing in Google Sites...

Don't worry, I'll help.

So! Now go back to the Google Site you created earlier.

Go to the desired page for the chart

Hit "Edit" (you need to be signed in for this)

Select the field you wish to place the chart in.


Click the little "HTML" button

Add the following code (and adjust to your needs)

<iframe src="" width=300px height=300px>


Once the "gadget" is added to your site, you can use the Google Sites easy config stuff to adjust settings for the "gadget" by clicking on it, and hitting "Properties"

Step 5: Save Your Work and View

Alright, you're now almost done!

Just save, and if you desire click "More Actions -> Preview as Viewer"

Be the First to Share


    • Pocket-Sized Speed Challenge

      Pocket-Sized Speed Challenge
    • Super-Size Speed Challenge

      Super-Size Speed Challenge
    • Audio Challenge 2020

      Audio Challenge 2020