Controlling the visibility of series data points

The series displayed on charts generated with GraphApplet have data points distributed in a regular sequence that follows labels progression. This sequence is continuous, in that for each label there is always a visible data point.
In certain conditions, however, there might be series with a discontinuous sequence of values, in which case gaps have to be inserted where no data points are to be displayed.

A continuous sequence of values must always be passed to JetChart series, despite there being gaps of data coming from the data source. In such case it is necessary to fill the gaps with arbitrary values, as zeros. For instance, let's suppose a chart displays 10 labels, and a data source doesn't return values corresponding to the second and fourth labels, but null data instead. Even in this case the parameter seriex_values must take arbitrary values in the second and fourth positions, and the parameter seriex_coordinatesstatus has to be used to indicate that the second and fourth data points must not be displayed.

The seriex_coordinatesstatus parameter takes a sequence of binary digits specifying what data points shall be displayed or not. A value of '0' means that the corresponding data point is hidden, whereas a value of '1' keeps the data point visible.

The parameter seriex_hiddenlineson can be used to specify whether the line fragments of a line series with hidden points shall be connected to each other or not.

Except for area series, all the other series displayed by GraphApplet support setting the coordinates status.

The following example displays a line series with hidden data points. The parameter 'seriex_hiddenlineson' is used to connect discontinuous segments of line.



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

<param name="labels" value="l1,l2,l3,l4,l5,l6,l7,l8,l9,l10">
<param name="labelsfont" value="SansSerif,12,2">

<param name="graphset0_gridon" value="yes">
<param name="graphset0_gridcolor" value="999999">

<param name="title" value="The JetChart Library,Controlling the visibility of series data points">
<param name="titlefont" value="SansSerif,12,1">

<param name="serie1" value="bar,Bar Series,0000ff">
<param name="serie1_values" value="50,70,80,30,60,55,75,90,100,110">

<param name="serie1_coordstatus" value="1,1,0,0,1,1,0,0,1,1">
<param name="serie1_hiddenlineson" value="no">


</applet>