This subroutine sets chart preferences for the forecast or assumption corresponding to the selected cell without displaying the Chart Preferences dialog. The default for any preference is the previous setting in the Chart Preferences dialog.
Note: | You must select a forecast or assumption cell before calling this subroutine to change the chart preferences for a single forecast or assumption. If you call this subroutine to change a single forecast or assumption chart (All is False) when no forecast or assumption cell is selected, CB.MacroResultDetail.NewValue returns error code -5102. |
Table 22. CB.ChartPrefsND Parameters
Sets basic forecast and assumption chart preferences, according to the Value parameter settings. For constant and index values, see Table 23. | ||
Works with the Index parameter to set forecast and assumption chart preferences. For available value settings, see Table 24. | ||
True applies settings to all assumptions or forecasts. False applies settings only to the selected assumption or forecast. The default is False. |
The Index parameter (Table 23) works with the Value parameter (Table 24) to set basic forecast and assumption chart preferences.
Table 23. CB.ChartPrefsND Index Parameter Values — Required, Integer
Sets the grouping in the histogram, according to the Value setting | ||
Turns on and off the mean line, according to the Value setting | ||
Turns on and off horizontal grid lines, according to the Value setting |
The following Index constant is obsolete in Crystal Ball 7.x and later (including 11.x): cbChtRedrawFrequency, Index = 4. |
The Value parameter (Table 24) works with the Index parameter (Table 23) to set forecast and assumption chart preferences.
Table 24. CB.ChartPrefsND Value Parameter Values — Required Variant