ValuesPosition Property
Sets or returns the position of value labels
on some graph types.
Syntax
object.ValuesPosition
Applies To
Discussion
When you create graphs, you can optionally display the associated numerical values with some bar graphs. The positioning of values is only valid for simple bar or cluster bar graphs.
Set the ValuesShown property to True to display these values.
Default: 0 (False)
Type
Short
Access
Read/Write (Graph)
Write (Graphs)
Example
This example sets the first graph object of the active report to a horizontal simple bar chart and sets the properties for the values shown on the bars.
Sub Main
Dim objPPRep as Object
Dim objPPGraph as Object
Set objPPRep = GetObject(,"CognosPowerPlay.Report")
Set objPPGraph = objPPRep.Graphs.Item(1)
With objPPGraph
.SetType 3,0,0
.ValuesShown = True
.ValuesPosition = 0
.ValuesAutoFit = False
.ValuesFontColor = 10
.ValuesFontSize = 10
.ValuesFontName = "Times New Roman"
End With
Set objPPGRaph = Nothing
Set objPPRep = Nothing
End Sub