Displaying gradient colors on the background
Rather than displaying a single-colored background, a chart can display a gradient effect to enhance presentation.
The gradient effect is a smooth variation between two colors, across the chart background. The following example displays
a gradient effect ranging from yellow to blue, starting from top to bottom.
The direction of the gradient effect is also customizable.
<applet code="GraphApplet.class" codebase="../../demo/applets/classes" archive="GraphChart.jar" width=400 height=250>
<param name="gradientcolors" value="ffff00,0000ff">
<param name="labels" value="label1,label2,label3,label4,label5,label6,label7">
<param name="title" value="The JetChart Library,Displaying gradient colors">
<param name="serie1" value="area,Area Series,ff0000">
<param name="serie1_values" value="100,80,90,40,75,60,85">
</applet>
The following parameter can be used to change the direction of the gradient effect:
<param name="gradientorientation" value="n">
The 'n' value can be:
0 - from top to bottom (default)
1 - from bottom to top
2 - from left to right
3 - from right to left