ResourceGraphBarStyles Method
Sets the styles of bars on the Resource Graph.
Syntax
expression**.ResourceGraphBarStyles(TopLeftShowAs, TopLeftColor, TopLeftPattern, BottomLeftShowAs, BottomLeftColor, BottomLeftPattern, TopRightShowAs, TopRightColor, TopRightPattern, BottomRightShowAs, BottomRightColor, BottomRightPattern, ShowValues, ShowAvailabilityLine, PercentBarOverlap)**
*expression * Optional. An expression that returns an Application object.
TopLeftShowAs Optional Long. The bar type for the category in the upper-left corner of the Bar Styles dialog box. Can be one of the following PjResourceGraphStyle constants: pjBar, pjArea, pjStep, pjLine, pjStepLine, or pjDoNotShow.
PjColor
pjColorAutomatic | pjNavy |
pjAqua | pjOlive |
pjBlack | pjPurple |
pjBlue | pjRed |
pjFuchsia | pjSilver |
pjGray | pjTeal |
pjGreen | pjYellow |
pjLime | pjWhite |
pjMaroon |
TopLeftPattern Optional Long. The bar pattern for the category in the upper-left corner of the Bar Styles dialog box. Can be one of the following PjResourceGraphPattern constants:
For line shapes: pjNoGraphLine, pjContinuous, pjGraphDash, pjGraphDot, pjDashDot, pjDashDotDot, or pjNoGraphLine.
nonline shapes
pjDarkFill | pjLineCross |
pjDiagonalCross | pjLineHorizontal |
pjDiagonalLeft | pjLineVertical |
pjDiagonalRight | pjMediumFill |
pjHollow | pjSolidFill |
pjLightFill |
BottomLeftShowAs Optional Long. The bar type for the category in the lower-left corner of the Bar Styles dialog box. Can be one of the PjResourceGraphStyle constants.
BottomLeftColor Optional Long. The bar color for the category in the lower-left corner of the Bar Styles dialog box. Can be one of the PjColor constants.
BottomLeftPattern Optional Long. The bar pattern for the category in the lower-left corner of the Bar Styles dialog box. Can be one of the PjResourceGraphPattern constants.
TopRightShowAs Optional Long. The bar type for the category in the upper-right corner of the Bar Styles dialog box. Can be one of the PjResourceGraphStyle constants.
TopRightColor Optional Long. The bar color for the category in the upper-right corner of the Bar Styles dialog box. Can be one of the PjColor constants.
TopRightPattern Optional Long. The bar pattern for the category in the upper-right corner of the Bar Styles dialog box. Can be one of the PjResourceGraphPattern constants.
BottomRightShowAs Optional Long. The bar type for the category in the lower-right corner of the Bar Styles dialog box. Can be one of the PjResourceGraphStyle constants.
BottomRightColor Optional Long. The bar color for the category in the lower-right corner of the Bar Styles dialog box. Can be one of the PjColor constants.
BottomRightPattern Optional Long. The bar pattern for the category in the lower-right corner of the Bar Styles dialog box. Can be one of the PjResourceGraphPattern constants.
ShowValues Optional Boolean. True if the corresponding values appear below the bars.
ShowAvailabilityLine Optional Boolean. True if a horizontal line appears where a resource reaches its maximum availability.
PercentBarOverlap Optional Integer. A number from 0 to 100 that specifies the overlap percentage of displayed bars.
Applies to | Application Object
See Also | ViewShowWorkAvailability Method