LogBase Property

Microsoft Office Web Components Visual Basic

expression.LogBase

expression    Required. An expression that returns a ChScaling object.

Example

This example causes the specified axis to use a base 2 logarithmic scale.

Sub SetScaling()

   Dim chConstants
   Dim scValueAxisScaling

   Set chConstants = ChartSpace1.Constants

   ' Set a variable to the scaling object of the value axis.
   Set scValueAxisScaling = ChartSpace1.Charts(0).Axes(chConstants.chAxisPositionValue).Scaling

   ' Set the scaling type.
   scValueAxisScaling.Type = chConstants.chScaleTypeLogarithmic

   ' Set the base value.
   scValueAxisScaling.LogBase = 2

End Sub