1. Turn on value labels
2. Value labels inside bars
3. Floating value labels
4. Angle of value labels
5. Font used for value labels
6. Decimal count
7. Prefix and postfix labels
The value labels can be displayed above or below 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=valueLabelsOn value="true">
</applet>
The value labels can be displayed inside the bars.
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=300 height=200>
<param name=sampleValues value="10,20,-30,-40,50">
<param name=valueLabelsOn value="true">
<param name=valueLabelStyle value="inside">
</applet>
The value labels can be displayed floating over each bar when the mouse moves over it.
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=300 height=200>
<param name=sampleValues value="10,20,-30,-40,50">
<param name=valueLabelsOn value="true">
<param name=valueLabelStyle value="floating">
</applet>
You can control the angle of the value labels.
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=300 height=200>
<param name=sampleValues value="100,200,300,400,500">
<param name=valueLabelsOn value="true">
<param name=valueLabelStyle value="inside">
<param name=valueLabelAngle value="270">
</applet>
Set the font used for the value labels.
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=300 height=200>
<param name=sampleValues value="100,200,300,400,500">
<param name=valueLabelsOn value="true">
<param name=valueLabelFont value="Arial, bold, 16">
</applet>
Control the number of decimals used for the value labels.
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=300 height=200>
<param name=sampleValues value="68.75,35.43,47.88,87.65,47.54">
<param name=valueLabelsOn value=true>
<param name=sampleDecimalCount value="2">
</applet>
Add a prefix or postfix label to the value 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=valueLabelsOn value=true>
<param name=valueLabelPrefix value="$">
<param name=valueLabelPostfix value="USD">
</applet>