Questions? Email us:
sales@haneng.com

 

Values shown on chart


Most chart types support to have the values shown without having to mouse over an item. Prefect for when you want to print a chart or in situations where there is no mouse access for the user (e.g. on a wall mounted screen in a factory for the workers to see). To turn this feature on in a chart add this code:

<PARAM NAME="ShowValues" VALUE="true">

Chart 1 Source Code


Chart 2 Source Code


When used with a layered chart the total value is shown:

Chart 3 Source Code


You can use the Label_x/Label_y_x to set the text shown to anything you want. For example use the item names so you don't have to use a legend:

Chart 4 Source Code


Source code for charts:

Chart 1:
<APPLET CODE="HanengCharts.class" ARCHIVE="HanengCharts3.jar" WIDTH=400 HEIGHT=350>
<PARAM NAME="LicenseKey" VALUE="30DAYDEMO-MZVTMFC86JsWT9">

<PARAM NAME="ChartType" VALUE="3DBar">

<PARAM NAME="ShowValues" VALUE="true">

<PARAM NAME="Value_1" VALUE="52852">
<PARAM NAME="Value_2" VALUE="54555">
<PARAM NAME="Value_3" VALUE="14545">
<PARAM NAME="Value_4" VALUE="64751">

</APPLET>

Chart 2:
<APPLET CODE="HanengCharts.class" ARCHIVE="HanengCharts3.jar" WIDTH=400 HEIGHT=350>
<PARAM NAME="LicenseKey" VALUE="30DAYDEMO-MZVTMFC86JsWT9">

<PARAM NAME="ChartType" VALUE="Pie">

<PARAM NAME="ShowValues" VALUE="true">

<PARAM NAME="Value_1" VALUE="52852">
<PARAM NAME="Value_2" VALUE="54555">
<PARAM NAME="Value_3" VALUE="14545">
<PARAM NAME="Value_4" VALUE="64751">

</APPLET>

Chart 3:
<APPLET CODE="HanengCharts.class" ARCHIVE="HanengCharts3.jar" WIDTH=400 HEIGHT=350>
<PARAM NAME="LicenseKey" VALUE="30DAYDEMO-MZVTMFC86JsWT9">

<PARAM NAME="ChartType" VALUE="3DLayeredBar">

<PARAM NAME="ShowValues" VALUE="true">

<PARAM NAME="Value_a_1" VALUE="1000">
<PARAM NAME="Value_a_2" VALUE="1000">
<PARAM NAME="Value_a_3" VALUE="1000">
<PARAM NAME="Value_a_4" VALUE="1000">

<PARAM NAME="Value_b_1" VALUE="2500">
<PARAM NAME="Value_b_2" VALUE="1500">
<PARAM NAME="Value_b_3" VALUE="2500">
<PARAM NAME="Value_b_4" VALUE="1500">
</APPLET>

Chart 4:
<APPLET CODE="HanengCharts.class" ARCHIVE="HanengCharts3.jar" WIDTH=400 HEIGHT=275>
<PARAM NAME="LicenseKey" VALUE="30DAYDEMO-MZVTMFC86JsWT9">

<PARAM NAME="ChartType" VALUE="Pie">

<PARAM NAME="ShowValues" VALUE="true">

<PARAM NAME="Value_1" VALUE="52852">
<PARAM NAME="Value_2" VALUE="54555">
<PARAM NAME="Value_3" VALUE="14545">
<PARAM NAME="Value_4" VALUE="64751">

<PARAM NAME="Label_1" VALUE="London (52852)">
<PARAM NAME="Label_2" VALUE="Paris (54555)">
<PARAM NAME="Label_3" VALUE="Helsinki (14545)">
<PARAM NAME="Label_4" VALUE="Chicago (64751)">

</APPLET>


Back >>