B) Next Create a new page and Insert a 'grid' page control with this record data:

By defining one or more dimensions as so called independent dimensions
it is possible to assign different attribute specifications along the
base members of these dimensions, i.e. for a dimension Time Periods
with months on level0, you can assign varying product managers per
month as required according to the following example:

C) Then, create another new page (in the same component) and Insert a
'Chart' page control, associate a Record Field Name to the
chart control (for example : TEST1DUMREC. TEST1FIELD), it is only
necessary to reference the chart control in PeopleCode.

D) Finally write these 11 lines of PeopleCode in the page "Activate" event:

1.Component Chart &Test;

2.&Test = GetChart(TEST1DUMREC. TEST1FIELD);

3.&Test.MainTitle = "Students by Project Role";

4.&Test.SetData(Record.TESTCHART);

5.&Test.SetDataYAxis(TESTCHART.COUNT);

6.&Test.SetDataXAxis(TESTCHART.PROJECTDESCR);

7.&Test.SetDataSeries(TESTCHART.CUSTOMER_ID);

8.&Test.SetDataColor(TESTCHART.CHART_COLOR2);

9.&Test.Type = %ChartType_3DBar;

10.&Test.HasLegend = True;

11.&Test.LegendPosition = %ChartLegend_Right;

Detailed explanation of Peoplecode:

Component Chart &Test;

→ Declare object chart with life span : 'Component'
class: "Chart"
Three new classes charts are available in PeopleTools 8.50:

Organization Chart → class: OrgChart

Rating Box Chart → class: RatingBoxChart

Interactive Gantt Charts → class: Gantt

object name: &Test

&Test = GetChart(TEST1DUMREC. TEST1FIELD);

→ Instantiate the chart object and associate the chart with the
chart page control :

FieldRecord TEST1DUMREC. TEST1FIELD

(it's only a reference to the chart control).

&Test.MainTitle = "Students by Project Role";

→ Define the property "MainTitle"

&Test.SetData(Record.TESTCHART);

→ Define the chart data record (data source graph)

&Test.SetDataYAxis(TESTCHART.COUNT);

→ Define the recordfield : TESTCHART.COUNT for the Y-Axis data

&Test.SetDataXAxis(TESTCHART.PROJECTDESCR);

→ Define the recordfield : TESTCHART.PROJECTDESCR for the X-Axis data

&Test.SetDataSeries(TESTCHART.CUSTOMER_ID);

→ Define the recordfield: TESTCHART.CUSTOMER_ID for the serie data

&Test.SetDataColor(TESTCHART.CHART_COLOR2);

→ Use SetDataColor CHART_COLOR2

&Test.Type = %ChartType_3DBar;

→ Define the property chart type:

&Test.HasLegend = True;

→ Display Legend.

&Test.LegendPosition = %ChartLegend_Right;

→ Define position Legend.

For more information about the Chart, please access the
PeopleBooks 8.50
and click on the left pagelet: Charting Class.