Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Adding a Chart to the Screen

1.    Click Add Object

The Add Objects window appears.

2.    On the Dynamic tab, click Chart.

3.    Click Insert Below or Insert Above as required.

A message appears to confirm if you want to use the wizard.

4.    To add a chart object directly to the screen without a wizard, click No. By default, the Line chart is added. Double-click the chart object to change the chart type and set the properties.

5.    To use the chart wizard, click Yes.
The Chart Creation Wizard appears.

6.    On the Chart Type list, select the required chart type, for example, Line; click Next.

7.    Set the chart properties and click Next.

a.    Tag: Enter a name for the chart.

b.    Row: Enter the row number on which the chart appears at runtime.

c.     Column: Enter the column number on which the chart appears at runtime.

d.    Height: Enter the height of the chart.

e.    Width: Enter the width of the chart. Enter the height and width in terms of columns and rows. For example, Height = 20 and Width = 30, the chart appears 20 rows high and 30 columns wide.

f.   Additionally, for Meter chart, you can configure the minimum scale, maximum scale and needle value either with a value or variable.

Note: By default, Meter chart considers the Meter Source as ‘Values’. Hence skip instructions from 8 to 12. You can later modify the Meter Source by associating a selection cycle.

8.    By default, the tag of the chart’s selection cycle appears.

9.    In the Row Return Data box, enter or select a variable (column1 in the chart’s selection cycle).

Note: This field is hidden in the chart at runtime.

10.  In the Row Return Data Tag box, enter the tag for the variable of Row Return Data.

11.  On the Data File list, select the File Definition and press Enter.
All the numeric fields in the file are listed.

12.  Enter the column heading for each field and click the Use check box for the columns to appear on the chart.
The column headings appear in the chart’s rendition depending upon the chart type and its properties set.

Note: The columns which are not selected will not appear in the chart.

13.  Ensure the chart object and the associated selection cycle are added to the right-side pane of the Add Object screen and click Ok.
The chart object is inserted in the point you have added. However the selection cycle is added at the end of the function.

14.  Click Save.

15.  Double-click the chart object to configure the properties.

Comment on this topic

Topic ID: 500655