The Line Chart component stores line chart data in the form of series/domain/value triplets. Each triplet represents a data point; the component should be invoked repeatedly, once for each triplet, until all required data is stored in it.
When the Line Chart component lands in the Workspace, it takes the following form:
Here the series slot accepts procedure variables or database table fields of TEXT type, domain slot accepts procedure variables or database table fields of FLOAT, MONEY, INTEGER, DATE, TIME or TEXT type, the value slot accepts numeric data of FLOAT, MONEY or INTEGER type, and the chart handle is a variable that carries all plot data accumulated by the Line Chart component; it should be passed to the Print component as shown in the following example:
Run-time parameters
The following Line Chart parameters can be changed at the run time through the Inspector:
Chart title
By default, the chart title is inherited from the Print Template where the Line Chart field is set. However, the Report Procedure can set the chart title to a specified text, or pass it through a variable. If the variable is used, it must be assigned the text before execution of the Line Chart component.
The following line chart graphic was created by the above report, with the settings of the Line Chart Inspector as shown: