<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=300 height=200>
<param name=sampleValues value="10,20,30,40,50">
<param name=sampleLabels value="one,two,three,four,five">
<param name=multiColorOn value=true>
<param name=legendOn value=true>
<param name=legendFont value="Arial, bold, 14">
</applet>
You can set the legend position to left, bottom, top, or right.
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=300 height=200>
<param name=sampleValues value="10,20,30,40,50">
<param name=sampleLabels value="one,two,three,four,five">
<param name=multiColorOn value=true>
<param name=legendOn value=true>
<param name=legendPosition value=left>
</applet>
You can set the color of the legend boxes.
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=300 height=200 VIEWASTEXT>
<param name=sampleValues value="10,-20,-30,40,50">
<param name=sampleColors value="blue, red, red, blue, blue">
<param name=multiColorOn value=true>
<param name=legendLabels value="good,bad">
<param name=legendColors value="blue, red">
<param name=legendOn value=true>
</applet>
You can set an image instead of any legend box.
NOTE: For security reasons, the browser may not let you load the images
so the legend entries might have the default boxes instead of the images.
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=300 height=200>
<param name=sampleValues value="10,20,30,40,50">
<param name=sampleLabels value="one,two,three,four,five">
<param name=multiColorOn value=true>
<param name=legendOn value=true>
<param name=legendImage_0 value="../api/images/blue-ball.gif">
<param name=legendImage_1 value="../api/images/yellow-ball.gif">
<param name=legendImage_2 value="../api/images/magenta-ball.gif">
<param name=legendImage_3 value="../api/images/red-ball.gif">
<param name=legendImage_4 value="../api/images/green-ball.gif">
</applet>