GraphData specifies the data used for a specified chart.
[form.]Report.GraphData(ArrayIndex%)
[= sectionCode; graphNum; row; col;
field;direction$]
CrystalReport1.GraphData(0)= "GROUPHDR.0.0; 1; GROUP2; GROUP1; 0; COLANDROW"
«The value in Group 1 is used for the rows of the graph, the value in Group 2 is used for the columns of the graph, the first summarized field added to the report is used to set the value of the risers of the graph, and values in both columns and rows are used to create the graph.»
With GraphData, you can specify changes to one or more graphs at runtime. Those changes then take place sequentially when you make the "Action=1" call.
The array index value for GraphData simply specifies the sequence number for the change. Thus:
CrystalReport1.GraphData(0) = "GROUPHDR.0.0; 3; Group1; Group2; 666; COLANDROW"
when making changes to one graph only, but
CrystalReport1.GraphData(0) = "HEADER; 3; Group1; Group2; 666; COLANDROW" CrystalReport1.GraphData(1) = "GROUPHDR.0.0; 3; Group1; Group2; 666; COLANDROW"
when making changes to more than one graph.
Use the following table as a guide in supplying the required values for this property:
| Parameter | Description | Expected value |
|---|---|---|
Please refer to Overview of Section Codes. | ||
The number of the graph within the section you want to modify. | Graphs in a section are numbered, starting with zero, left to right first, then top to bottom. | |
The Group number in the report used to create rows in the graph. | ||
The Group number in the report used to create columns in the graph. | ||
The summarization field containing values to be used as the value of each riser in the graph. | The first summary field added to a report is numbered 0, the second is numbered 1, etc. | |
Whether the values in the rows, the columns, or both are used to create the graph. |
| Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |