Questions? Email us:
sales@haneng.com

 

StartAtZero


Description:
Negative values for bar charts are drawn as default from 0. By setting StartAtZero to false the bars will start at minus infinity.

Example:
<PARAM NAME="StartAtZero" VALUE="false">

Code Samples:
Lets start with a simple chart:


View Source Code

Now lets set StartAtZero to false to see what the chart will look like then. We do this by adding this code between the <APPLET> tags:
<PARAM NAME="StartAtZero" VALUE="false">

The chart will now look like this:


View Source Code




Sample Chart Source Code:

Code For Chart 1:
<APPLET CODE="HanengCharts.class" ARCHIVE="HanengCharts3.jar" WIDTH=350 HEIGHT=200>
<PARAM NAME="LicenseKey" VALUE="30DAYDEMO-LZNL2KRV444N2P">
<PARAM NAME="ChartType" VALUE="3dbar">
<PARAM NAME="Text_1" VALUE="Sydney">
<PARAM NAME="Value_1" VALUE="435">
<PARAM NAME="Text_2" VALUE="New York">
<PARAM NAME="Value_2" VALUE="-794">
<PARAM NAME="Text_3" VALUE="London">
<PARAM NAME="Value_3" VALUE="-326">
<PARAM NAME="Text_4" VALUE="Paris">
<PARAM NAME="Value_4" VALUE="712">
<PARAM NAME="Text_5" VALUE="Berlin">
<PARAM NAME="Value_5" VALUE="-825">
</APPLET>

Code For Chart 2:
<APPLET CODE="HanengCharts.class" ARCHIVE="HanengCharts3.jar" WIDTH=350 HEIGHT=200>
<PARAM NAME="LicenseKey" VALUE="30DAYDEMO-LZNL2KRV444N2P">
<PARAM NAME="ChartType" VALUE="3dbar">
<PARAM NAME="StartAtZero" VALUE="false">
<PARAM NAME="Text_1" VALUE="Sydney">
<PARAM NAME="Value_1" VALUE="435">
<PARAM NAME="Text_2" VALUE="New York">
<PARAM NAME="Value_2" VALUE="-794">
<PARAM NAME="Text_3" VALUE="London">
<PARAM NAME="Value_3" VALUE="-326">
<PARAM NAME="Text_4" VALUE="Paris">
<PARAM NAME="Value_4" VALUE="712">
<PARAM NAME="Text_5" VALUE="Berlin">
<PARAM NAME="Value_5" VALUE="-825">
</APPLET>