Displaying an image on the background

In addition to supporting a single-colored background and gradient colors effect, JetChart applets also feature parameters to load and display an image on the chart background. Three background filling modes are available, and the area to be filled is also customizable.

The example below loads the "rain.jpg" file from the codebase directory and then tiles the entire background area with the image.



<applet code="GraphApplet.class" codebase="../../demo/applets/classes" archive="GraphChart.jar" width=400 height=250>

<param name="backgroundimage" value="rain.jpg,0">

<param name="labels" value="label1,label2,label3,label4,label5,label6,label7">
<param name="title" value="The JetChart Library,Displaying an image on the background">
<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 delimit the background area:
<param name="backgroundimagearea" value="n">
The 'n' value can be:
0 - entire chart area (default)
1 - the area delimited by the vertical and horizontal axis