// Set applet size to 600 * 400

clear white

// Sales line chart.
polygon 25 300
polygon 50 250
polygon 75 260
polygon 100 250
polygon 150 175
polygon 150 300
polygon 25 300

color red
polygonfill


color black
line 25 300 25 150
line 25 301 200 301

textset Time
textdisplay 30 325 16

textset $
textdisplay 20 140 16

// End of line chart.

// Main title.
color blue
textset Sample charts of sales for company xyz.
textdisplaycenter 100 16

// Sales distribution pie chart.

color cyan
arcfill 225 200 100 100 0 270
boxfill 350 250 50 25
color magenta
arcfill 225 200 100 100 270 90
boxfill 350 290 50 25

color black
textset Hardware
textdisplay 400 270 16

color black
textset Software
textdisplay 400 310 16

color black
textset Sales Distribution
textdisplay 350 200 16

// End of pie chart.