BCGControlBar Pro for MFC
virtual void CBCGPChartAxis::CalcMajorMinorUnits ( CBCGPGraphicsManager pGM,
UINT  nUnitsToDisplay = -1 

Calculates major and minor units for an axis.

This method is called to calculate major and minor units for an axis. Can be overridden in a derived class to customize axis behavior. At the end the override must call CBCGPChartAxis::CalcMinMaxDisplayedValues.

Sometimes minimum value should not be calculated (it's assumed to be 0 for some axis setups).

pGMA pointer to a graphics manager.
nUnitsToDisplayA restriction how many units to display on the axis. (UINT)-1 means no restriction.