3D Bar Chart Applet: Chapter 4
(Trial Version)

Previous Page Table Of Contents Next Page

Basic Properties

There are basic properties for different components for the chart. For examples, fonts, colors, position, 3D Rotations and Label Format.

1. Fonts

Format "Font Name, Font Style, Font Size"
Description This is the Font setting for different text labels in the chart 
Font Name

Java fonts: Dialog, SansSerif, Serif, Monospaced
Other fonts: Arial, Helvetica, Courier, TimesRoman, Sans Serif
However, the available fonts are different from server to server. Please check the system manual for the avaiable fonts for your system.

Font Style plain, bold, italic, bolditalic
Font Size any number
Example <param name="BarLabelFont" value="Arial,plain,10">

Default Font

Arial, plain, 12

2. Colors

Formats

1.  "Basic Color"
2.  "#FF023A"
3. "Color1|Color2" only apply to gradient backgroundColor.

Description This is the Color setting for different components in the chart. 
Basic Colors black, blue, cyan, darkgray, gray, green, lightgray, magenta, orange, pink, white, and yellow.
RGB Colors any [r,g,b] color in the format of "#FF32EA"
BackgroundColor

For backgroundColor only, there are two formats.
1. "Color" - fill the background with one color
    e.g. <param name="BgColor" value="red">
2. "TopColor|BottomColor" - fill the background in gradient with two colors.
    e.g. <param name="BgColor" value="white|blue">

Example <param name="Series1Color" value="red">
Default Color white

3. Position

Format

"x-coord, y-coord"

Description This is the (x,y) position for a component in the chart. 
Screen
Coordinates
Example <param name="LegendPos" value="500,150">

4. 3D Rotations

Format

"angle"

Description This is the rotation angle for the chart. There is only two rotations option for this software, rotate along X axis, and rotate along Y axis. Beware that the 3D coordinates space is different from the screen coordinates space.
3D Rotation
along X axis
3D Rotation
along Y axis
Examples <param name="rotateX" value="-30">
<param name="rotateY" value="-30">

5. Label Format

Format

"$###,###.00"

Description

This is the label format for the Y axis Label to format number to display in special pattern. This is the same format API using in Java. You can use "$ # 0 - , ." symbols to specify you pattern.
For more detail description, you can go to following link:
http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html

Symbols

[#] --- Digit, zero show if absent
[0] --- Digit
[.] --- Decimal separator
[-] --- Minus sign
[,] --- Grouping separator
[$] --- Currency sign

Format Examples
Values Patterns Output Description
1234567.1 $###,###,###.## $1,234,567.1 common format
1234567.1 $###,###,###.00 $1,234,567.10 with two decimal points
1234567 000000000.00 001234567.00 with leading zeros
1234567 0000### error cannot have leading zeros before "#"

a. 100
b. 0 

$###.00

a. $100.00
b. $.00

For the zero value, the value is display as "$.00".

0

$##0.00

$0.00

If you want to display zero as "$0.00". You need to use this format.
Example <param name="YLabelFormat" value="$#,###,###.00">
Default Format "########"