1. Setting the chart title
2. Default sample labels
3. Sample labels in legend
4. Sample labels with horizontal bars
5. Vertical sample labels
6. Multiline sample labels
7. Floating sample labels
8. Sample label colors
9. Automatic label spacing and sample scroller
10. Configuring the label delimiter
11. Series labels
12. Axis labels

Set the chart title

<applet code=com.objectplanet.chart.BarChartApplet
 archive=chart.jar width=300 height=200>
<param name=sampleValues value="10,20,30,40,50">
<param name=chartTitle value="chart title">
<param name=titleFont value="Courier, bold, 20">
</applet>

Add \n for a line break in the title.

<applet code=com.objectplanet.chart.BarChartApplet
 archive=chart.jar width=300 height=200>
<param name=sampleValues value="10,20,30,40,50">
<param name=chartTitle value="chart\ntitle">
<param name=titleFont value="Courier, bold, 20">
</applet>

By default, the sample labels are displayed under each bar.

<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=barLabelsOn value=true>
</applet>

The sample labels are also displayed in the legend when only one data series is used.

<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=legendOn value=true>
<param name=multiColorOn value=true>
</applet>

If the you have long sample labels, you can display the chart horizontally.

<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="monday, tuesday, wednesday, thursday, friday">
<param name=barLabelsOn value=true>
<param name=barAlignment value=horizontal>
</applet>

Or you can use vertical labels.

<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="monday, tuesday, wednesday, thursday, friday">
<param name=barLabelsOn value=true>
<param name=barLabelAngle value=270>
</applet>

You can also have multiline labels.

<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="jan\n2001,feb\n2001,mar\n2001,apr\n2001,may\n2001">
<param name=barLabelsOn value=true>
</applet>

You can also have staic and floating bar labels. Move the mouse over each bar to see the floating labels.

<applet code=com.objectplanet.chart.BarChartApplet
 archive=chart.jar width=300 height=200>
<param name=sampleValues value="10,20,30,40,50">
<param name=barLabels value="jan\n2001,feb\n2001,mar\n2001,apr\n2001,may\n2001">
<param name=sampleLabels value="bar one,bar two,bar three,bar four,bar five">
<param name=barLabelsOn value=true>
<param name=barLabelStyle value="below_and_floating">
<param name=chartTitle value="this is the\nchart title">
<param name=rangeAxisLabel value="range axis label">
<param name=rangeAxisLabelAngle value="270">
<param name=rangeAxisLabelFont value="Arial, bold, 14">
</applet>

You can set the colors of the sample labels.

<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=barLabelsOn value=true>
<param name=sampleLabelColors value="black, red, black, blue, black">
</applet>

If you have to many bar labels and they overlap, you can turn on autospacing of the labels and only the ones there is space for will be painted. Drag the sample scroller ends to see the effect.

<applet code=com.objectplanet.chart.BarChartApplet
 archive=chart.jar width=300 height=200>
<param name=sampleValues value="6,8,7,9,8,7,9,8,7,8,7,6,9,8,6,8,7,6,5,7,6,4,6,5,4,3,5,3,4,3">
<param name=sampleLabels value="01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30">
<param name=barLabelsOn value=true>
<param name=sampleScrollerOn value=true>
<param name=autoLabelSpacingOn value=true>
</applet>

If you want commas (,) in your labels you need to set the label delimiter.

<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="jan,2001:feb,2001:mar,2001:apr,2001:may,2001">
<param name=barLabelsOn value=true>
<param name=labelDelimiter value=":">
</applet>

The series labels are displayed in the legend when multiple data series are used.

<applet code=com.objectplanet.chart.BarChartApplet
 archive=chart.jar width=300 height=200>
<param name=seriesCount value=2>
<param name=sampleValues_0 value="10,20,30,40,50">
<param name=sampleValues_1 value="20,30,40,50,60">
<param name=seriesLabels value="Data A,Data B">
<param name=legendOn value=true>
<param name=multiColorOn value=true>
</applet>

You can set the color of the series labels.

<applet code=com.objectplanet.chart.BarChartApplet
 archive=chart.jar width=300 height=200>
<param name=seriesCount value=2>
<param name=sampleValues_0 value="10,20,30,40,50">
<param name=sampleValues_1 value="20,30,40,50,60">
<param name=seriesLabels value="Data A,Data B">
<param name=seriesLabelColors value="red, blue">
<param name=legendOn value=true>
<param name=multiColorOn value=true>
</applet>

Setting the axis labels

<applet code=com.objectplanet.chart.BarChartApplet
 archive=chart.jar width=300 height=200>
<param name=sampleValues value="10,20,30,40,50">
<param name=rangeAxisLabel value="range axis label">
<param name=rangeAxisLabelAngle value="270">
<param name=rangeAxisLabelFont value="Arial, bold, 16">
<param name=sampleAxisLabel value="sample axis label">
<param name=sampleAxisLabelFont value="Arial, bold, 16">
</applet>

<applet code=com.objectplanet.chart.BarChartApplet
 archive=chart.jar width=300 height=200>
<param name=sampleValues value="10,20,30,40,50">
<param name=rangeAxisLabel value="range axis label">
<param name=rangeAxisLabelFont value="Arial, bold, 16">
<param name=sampleAxisLabel value="sample axis label">
<param name=sampleAxisLabelFont value="Arial, bold, 16">
<param name=sampleAxisLabelAngle value="90">
<param name=barAlignment value=horizontal< </applet>