You have seen how the GraphDefaults object controls the destination and type of graph that is created. In addition, this object (along with the BDKAxisDefaults and BDKCurveDefaults objects) also controls the formatting of graphs. You can control curve style, colors, axes, delimiters, etc. For example, to make a graph with two distribution curves, with the first formatted as a solid red curve, and the second as a green line, you could write the code:
With BDKApp.GraphDefaults
.Curves(1).CurveStyle = BDKCurveStyleSolid
.Curves(1).Color = BDKColorRed
.Curves(2).CurveStyle = BDKCurveStyleLine
.Curves(2).Color = BDKColorGreen
End With
Set Picture1.Picture = dist.Graph(BDKCurveTypeDensity, overlay)
Changes you make to the GraphDefaults object affect all graphs you make. You can call the RevertToDefaultSettings method to reset all the GraphDefault properties to their initial, default values (except the Destination, DestinationFile, ExcelServer, ExcelServerVisible, and ExcelServerAutoClose properties, which are not modified).