Lesson goal: Make a Google Chart

Previous: Take a derivative | Home | Next: Make an (x,y) plot

Google has an online chart creation facility. There are a variety of professional looking charts that you can use right inside of your programming projects. In this lesson, we'll show you how to use a function called drawchart that calls upon this awesome Google tool, to allow you to create charts yourself.

Since charts are made of rows of data, arrays will be a natural way of holding and presenting your data to the chart drawing function, which is called drawchart as described here:
Move the mouse over a dotted box for more information.

A chart will always appear at the very bottom of the browser window. You might have to scroll down to see it.

Now you try. Fill the x and y arrays with comma-separated data points, then see your line chart appear.

Type your code here:

See your results here: