Target lines

A target line is used to compare series data points values against an indicator that acts as a delimiter, which usually represents a goal to achieve or a boundary beyond which data points might be considered as undesired deviations.

Target lines belong to graphsets, and there is no limitation on the number of target lines that can be added to the chart context. The applet GraphApplet, however, limits the number of target lines to 20, in that the target lines parameters are indexed and identified by GraphApplet in an internal loop.

Target lines are linked to their respective graphsets using the parameter 'targetlinex_graphsetindex'. If this parameter is not informed a target line is linked to the primary graphset.

Target lines are only supported by charts created with GraphApplet.



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

<param name="bordercolor" value="000000">
<param name="title" value="The JetChart Library,Target lines">
<param name="color" value="ccffff">

<!-- Creates the target line -->
<param name="targetline1" value="7">
<param name="targetline1_color" value="ff0000">

<!-- Creates a bar series -->
<param name="serie1" value="bar,bar series,000000">
<param name="serie1_values" value="4.5,6.3,7.8,9.2,5.5,8.1,6.5,3.9,7.8,8.6">
<param name="serie1_colors" value="ff0000,ff0000,00ff00,00ff00,ff0000,00ff00,ff0000,ff0000,00ff00,00ff00">
<param name="serie1_legendon" value="no">
<param name="serie1_borderon" value="no">
</applet>