






























Questions? Email us:
sales@haneng.com
|
|
MaxBarWidth
Description:
Many people use HanengCharts with data from data bases and one doesn't allways
know how many values one want to chart. If for example we have a chart that
has between 1 and 5 bars, then the chart looks good when we have 2-5 bars,
but when we have a single bar it looks strange. By using MaxBarWidth
we can set a maximum width that a bar can have and thus make sure the chart
looks good even with a single bar. The width is set in pixels.
Example:
<PARAM NAME="MaxBarWidth" VALUE="100">
Code Samples:
Lets start with a simple chart:
View Source Code
Now lets set MaxBarWidth to 100 to see what the chart will look like then.
We do this by adding this code between the <APPLET> tags:
<PARAM NAME="MaxBarWidth" VALUE="100">
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-NY3Zs34SUS99WL">
<PARAM NAME="ChartType" VALUE="3dbar">
<PARAM NAME="Text_1" VALUE="8/1/2008">
<PARAM NAME="Value_1" VALUE="435">
</APPLET>
Code For Chart 2:
<APPLET CODE="HanengCharts.class" ARCHIVE="HanengCharts3.jar" WIDTH=350 HEIGHT=200>
<PARAM NAME="LicenseKey" VALUE="30DAYDEMO-NY3Zs34SUS99WL">
<PARAM NAME="ChartType" VALUE="3dbar">
<PARAM NAME="MaxBarWidth" VALUE="100">
<PARAM NAME="Text_1" VALUE="8/1/2008">
<PARAM NAME="Value_1" VALUE="435">
</APPLET>
|
|