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

Specifies the lowest value displayed from all data series as the smallest data value on a given axis.

Visual Basic
Public Sub SetAxisMinValue( axis As AxisType, min_value As Object )
C#
public void SetAxisMinValue( AxisType axis, object min_value );

Arguments

axis
An AxisType anum value that specifies the axis (see table below).
min_value
A data value that specifies the lowest value on the selected axis.

Remarks

The SetAxisMinValue method specifies the lowest value displayed from all data series as the smallest data value on a given 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

The value type can be one of the following types: double, string, DateTime, int, float, decimal, byte, sbyte, short, ushort, uint, long, ulong.

Use the ResetAxisBounds method to let Swiff Chart Generator automatically determine the Axis Min value.

Sample Code

The following code illustrates use of the SetAxisMinValue method.

Visual Basic
' Load the style file first!
chart.LoadStyle( "C:\\myXYStyle.scs" )

chart.SetSeriesXValuesFromString( 0, "02/2007;05/2007;12/2007" )
chart.SetSeriesYValuesFromString( 0, "187.8;156.9;121.8" )

' Set the min-max displayed dates of the X axis
chart.SetAxisMinValue( AxisType.Horizontal, "12/2006" )
chart.SetAxisMaxValue( AxisType.Horizontal, "07/2008" )

' Set the min-max displayed values of the Y axis
chart.SetAxisMinValue( AxisType.Vertical, 110 )
chart.SetAxisMaxValue( AxisType.Vertical, 200 )

' X axis and Y axis cross at (05/2007,110)
chart.SetAxisCrossValue( AxisType.Horizontal, "05/2007" )
chart.SetAxisCrossValue( AxisType.Vertical, 110 )
C#
// Load the style file first!
chart.LoadStyle( "C:\\myXYStyle.scs" );

chart.SetSeriesXValuesFromString( 0, "02/2007;05/2007;12/2007" );
chart.SetSeriesYValuesFromString( 0, "187.8;156.9;121.8" );

// Set the min-max displayed dates of the X axis
chart.SetAxisMinValue( AxisType.Horizontal, "12/2006" );
chart.SetAxisMaxValue( AxisType.Horizontal, "07/2008" );

// Set the min-max displayed values of the Y axis
chart.SetAxisMinValue( AxisType.Vertical, 110 );
chart.SetAxisMaxValue( AxisType.Vertical, 200 );

// X axis and Y axis cross at (05/2007,110)
chart.SetAxisCrossValue( AxisType.Horizontal, "05/2007" );
chart.SetAxisCrossValue( AxisType.Vertical, 110 );

See Also

SetAxisMaxValue Method | SetAxisCrossValue Method | ResetAxisBounds Method

Applies To: Chart Object