Chapter 14: Applied JavaScript

Return to Chapter 14

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

A Bar Graph Generator

See it run: A Bar Graph Generator

Script 14.12

This is the HTML for the bar chart generator.

Script 14.13

This CSS contains the styles for the bar chart example.

Script 14.14

This JavaScript draws the bar chart.

Images:

lilRed.gif
lilBlue.gif
lilGreen.gif