BCGControlBar Pro for MFC
void CBCGPChartAxis::SetFixedUnitCount ( int  nCount,
BOOL  bSet 
)

Sets a value that fixes the number of displayed major units.

Call this function to set a fixed number of displayed major units. In this case the major unit size will be calculated automatically according to the defined number.

For example, the maximum on the Y axis is 10. If you don't set the fixed unit count, the automatic major unit size will be 1 or 2, depending on the chart area size. If you set the fixed value to 50, the major unit will be around 0.2.

Parameters
nCountThe new count.
bSetEnable or disable the "fixed unit count" feature.