Graphs

Maintains a list of Graph objects in a Report object.

Discussion

Collections are generic objects that group or list other types of objects. You can group the Graphs objects in a Report object into a Graphs collection. Using a Graphs collection, you can operate on the entire group of Graph objects at once rather than one at a time.

Graphs present report data in a number of formats that emphasize different statistical features. For example, pie charts show the relationship of a category to the whole whereas clustered bar graphs show the trend of categories over time.

Name

Description

Active Method

Returns the active Graph object.

Add Method (Graphs)

Adds a Graph object to the Graphs collection.

Item Method

Returns one Graph object from the Graphs collection.

Remove Method

Removes all Graph objects from the Report object.

Name

Description

Application Property

Returns the Application object.

Count Property

Returns the number of Graph objects in the Graphs collection.

DataGridlines Property

Sets whether the gridlines settings are on or off for a crosstab

EnableUserColumnSummaryLabel Property

Sets whether a user-specified label is used for the innermost summary column in a nested crosstab.

EnableUserRowSummaryLabel Property

Returns whether a user-specified label is used for the innermost summary row in a nested crosstab.

HideRankCategory Property

Sets whether the rank category is hidden.

IndentTotalsLevel Property

Sets the current indent level for summary cells on nested crosstabs in the collection.

KeepSummaryVisible Property

Sets whether the summary category will remain visible on all scrolled pages.

LabelGridlines Property

Sets whether the gridlines are on or off for category labels in a nested crosstab.

Layout Property

Sets the current layout style for nested crosstabs in the collection.

MaxPrintedBars Property

Sets the maximum number of bars on a single printed page

MaxVisibleBars Property

Sets the maximum number of bars visible on a single page of scrolled data.

NamesShown Property

Sets or returns whether category names appear beside pie chart slices.

ShowSummaryBreakdown Property (Explorer)

Sets or returns whether to show the breakdown of summary rows and columns in a crosstab.

ShowSummaryColumn Property (Explorer)

Sets whether to show the summary column for crosstabs in the collection.

ShowSummaryRow Property (Explorer)

Sets whether to show the summary row for crosstabs in the collection.

ShowTies Property

Sets whether to show label ties.

StatsLineCaption Property

Sets or returns the caption for a given statistical line on a graph.

StatsLineColor Property

Sets or returns the color for a given statistical line on a graph.

StatsLineOn Property

Sets or returns a statistical line on a graph.

StatsLineStyle Property

Sets or returns the line style of a given statistical line on a graph.

StatsLineUserValue Property

Sets a custom value for a statistical line on a graph.

UseScrolling Property

Sets or returns whether scrolling is enabled.

UserColumnSummaryLabel Property

Sets or returns the user-defined label for the innermost summary column in a nested crosstab.

UserRowSummaryLabel Property

Sets or returns the user-defined label for the innermost summary row in a nested-crosstab.

ValuesAutoFit Property

Sets whether value labels fit within graph bars and pie segments.

ValuesFontColor Property

Sets the font color used for the value labels for graphs in the collection.

ValuesFontName Property

Sets the font name used for the value labels for graphs in the collection.

ValuesFontSize Property

Sets the font size used for the value labels for graphs in the collection.

ValuesPosition Property

Sets the position of value labels on some graph types in the collection.

ValuesShown Property

Sets or returns whether value labels appear next to pie chart slices.

Example

This example opens a report, adds a new Graph object to the Graphs collection, and saves the report.

Sub Main()
   Dim objPPRep as Object
   Set objPPRep = CreateObject("CognosPowerPlay.Report")
   objPPRep.Open "C:\Cubes and Reports\Trend.ppr"
   objPPRep.Graphs.Add 5
   objPPRep.Save
   objPPRep.Close
   Set objPPRep = Nothing
End Sub

Related Topics