Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)

Force Swiff Chart Generator to automatically evaluate Cross and Bounds values of a given axis.

Visual Basic

    Public Sub ResetAxisBounds( axis As AxisType )

C#

    public void ResetAxisBounds( AxisType axis );

#### Arguments

axis
  An AxisType anum value that specifies the axis (see table below).

#### Remarks

The ResetAxisBounds method forces Swiff Chart Generator to automatically calculate the minimum value, the maximum value and the cross value of the selected axis.

The axis is defined by an integer value interpreted as follows:

Enum Value | Definition
--- | ---
AxisType.Horizontal

Horizontal Axis
AxisType.Vertical Vertical Axis
AxisType.HorizontalSecondary Secondary Horizontal Axis
AxisType.VerticalSecondary Secondary Vertical Axis

Use the SetAxisMinValue method to specify a custom minimum value of the selected axis.

Use the SetAxisMaxValue method to specify a custom maximum value of the selected axis.

Use the SetAxisCrossValue method to specify a custom cross value of the selected axis.

#### Sample Code

The following code illustrates use of the ResetAxisBounds method.

Visual Basic

    chart.ResetAxisBounds( AxisType.Horizontal )
    chart.ResetAxisBounds( AxisType.Vertical )

    ' Set the minimum date displayed on the X axis to "05/2007"
    chart.SetAxisMinValue( AxisType.Horizontal, "05/2007" )

    ' Set the minimum value displayed on the Y axis to 110
    chart.SetAxisMinValue( AxisType.Vertical, 110 )

C#

    chart.ResetAxisBounds( AxisType.Horizontal );
    chart.ResetAxisBounds( AxisType.Vertical );

    // Set the minimum date displayed on the X axis to "05/2007"
    chart.SetAxisMinValue( AxisType.Horizontal, "05/2007" );

    // Set the minimum value displayed on the Y axis to 110
    chart.SetAxisMinValue( AxisType.Vertical, 110 );

#### See Also

SetAxisMinValue Method | SetAxisMaxValue Method | SetAxisCrossValue Method

Applies To: Chart Object