BCGControlBar Pro for MFC
void CBCGPChartSurfaceSeries::SetLevelRangeMode ( LevelRangeMode  rangeMode,
double  dblMinCustomRangeValue = 0.,
double  dblMaxCustomRangeValue = 0. 
)

Sets level range mode.

Call this method to set level range mode, which defines what minimum and maximum values are taken to build surface levels.

rangeMode can be one of the following enumerated values:

  • LRM_MINMAX_SERIES - the surface levels are built between minimum and maximum series values. You can choose this mode if a diagram displays one surface and you want to see "fixed" levels (e.g. level ranges do not depend on minimum and maximum on Y axis, which may be changed when the chart is rotated).
  • LRM_MINMAX_Y_AXIS - the surface levels are built between minimum and maximum values displayed o Y axis (the default). The levels may be changed when diagram is rotated.
  • LRM_CUSTOM - allows to specify custom minimum and maximum level range. It may be useful when you have more than one surface on the chart and wish to display them with the same level colors. dblMinCustomRangeValue must be less or equal than the minimum Y value among all series; dblMaxCustomRangeValue must be greater or equal than the maximum Y value among all series.
Parameters
rangeModeSpecifies the new range mode.
dblMinCustomRangeValueMinimum custom range value.
dblMaxCustomRangeValueMaximum custom range value.