






























Questions? Email us:
sales@haneng.com
|
|
Target Zones and Target Lines
Target Zones and Target Lines lets you set multiple zones and lines as a background for your chart.
It could for example be profit goals or estimated earnings.
Target Lines:
Chart 1 Source Code
Target Zones:
Chart 2 Source Code
You can even combine Target Lines and Target Zones in the same chart:
Chart 3 Source Code
Using Target Lines
Lets have a look at the "Profit" Target Line in the first chart:
<PARAM NAME="TargetLine_1" VALUE="50000:00AA00:Profit">
The first thing to notice is the name of the parameter: TargetLine_1.
The Target Lines you want to add to the chart needs to have the name TargetLine_1, TargetLine_2,
TargetLine_3 and so on. Now lets look at the value of the parameter:
50000:00AA00:Profit. If you look closely you can see that there
is 3 values separated by the : char. The first value,
50000, is value of the target line, the second value,
00AA00, is the color we want
the line to have (in standard html code) and the last value, Profit, is an optional
label for the Target Line.
Using Target Zones
The code for Target Zones is identical to the one used for Target Lines except for two things:
1. Instead of TargetLine_1, TargetLine_2 etc. we use TargetZone_1, TargetZone_2 etc.
2. Instead of the one value we have two values to mark the beginning and the end of the zone.
So the "Profit" Target Zone in the second chart looks like this:
<PARAM NAME="TargetZone_1" VALUE="50000:70000:00EA00:Profit">
Meaning "create a target zone between the values 50000 and 70000 with the color 00EA00 (green)
and label it "Profit".
Source code for charts:
Chart 1:
<APPLET CODE="HanengCharts.class" ARCHIVE="HanengCharts3.jar" WIDTH=400 HEIGHT=350>
<PARAM NAME="LicenseKey" VALUE="30DAYDEMO-L3QP9yAP5uuQyy">
<PARAM NAME="ChartType" VALUE="Bar">
<PARAM NAME="TargetLine_1" VALUE="50000:00EA00:Profit">
<PARAM NAME="TargetLine_2" VALUE="45000:FCED01:Break Even">
<PARAM NAME="TargetLine_3" VALUE="40000:D10505:Loss">
<PARAM NAME="Value_1" VALUE="34555">
<PARAM NAME="Value_2" VALUE="64751">
<PARAM NAME="Value_3" VALUE="44545">
<PARAM NAME="Value_4" VALUE="12852">
</APPLET>
Chart 2:
<APPLET CODE="HanengCharts.class" ARCHIVE="HanengCharts3.jar" WIDTH=400 HEIGHT=350>
<PARAM NAME="LicenseKey" VALUE="30DAYDEMO-L3QP9yAP5uuQyy">
<PARAM NAME="ChartType" VALUE="Bar">
<PARAM NAME="TargetZone_1" VALUE="50000:70000:00EA00:Profit">
<PARAM NAME="TargetZone_2" VALUE="40000:50000:FCED01:Break Even">
<PARAM NAME="TargetZone_3" VALUE="0:40000:D10505:Loss">
<PARAM NAME="Value_1" VALUE="34555">
<PARAM NAME="Value_2" VALUE="64751">
<PARAM NAME="Value_3" VALUE="44545">
<PARAM NAME="Value_4" VALUE="12852">
</APPLET>
Chart 3:
<APPLET CODE="HanengCharts.class" ARCHIVE="HanengCharts3.jar" WIDTH=400 HEIGHT=350>
<PARAM NAME="LicenseKey" VALUE="30DAYDEMO-L3QP9yAP5uuQyy">
<PARAM NAME="ChartType" VALUE="Bar">
<PARAM NAME="TargetLine_1" VALUE="45000:FCED01:Break Even">
<PARAM NAME="TargetZone_1" VALUE="50000:70000:00EA00:Profit">
<PARAM NAME="TargetZone_2" VALUE="0:40000:D10505:Loss">
<PARAM NAME="Value_1" VALUE="34555">
<PARAM NAME="Value_2" VALUE="64751">
<PARAM NAME="Value_3" VALUE="44545">
<PARAM NAME="Value_4" VALUE="12852">
</APPLET>
Back >>
|
|