The Bar Chart component stores bar chart data in the form of series/category/value triplets. Each triplet represents a bar; the component should be invoked repeatedly, once for each triplet, until all required data is stored in it.
When the Bar Chart component lands in the Workspace, it takes the following form:
Here the series and category slots accept procedure variables or database table fields of 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 Bar Chart component; it should be passed to the Print component as shown in the following example:
Run-time parameters
The following Bar 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 Bar 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 Bar Chart component.
The following bar chart graphic was created by the above report, with the settings of the Bar Chart Inspector as shown: