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

object.SetAxisMinValue( axis_number, min_value )

Arguments

object
Required. A Chart object.
axis_number
Required. An integer value that specifies the axis (see table below).
min_value
Required. 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:

Code Definition
0
Horizontal Axis
1
Vertical Axis

Note: Loading chart graphical settings from a style file via the method LoadStyle automatically overrides all the Axis Min values. Therefore, you must call the LoadStyle method before calling the SetAxisMinValue method.

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

JScript Sample Code

The following JScript code illustrates use of the SetAxisMinValue method in a ASP page.

//Load the syle file first!
chart.LoadStyle( "C:\myXYStyle.scs" );

chart.SetSeparators( ";", true );
chart.AddSeries();
chart.SetSeriesXValuesFromString( 0, "02/2002;05/2002;12/2002" );
chart.SetSeriesYValuesFromString( 0, "187.8;156.9;121.8" );

//Set the min-max displayed dates of the X axis
chart.SetAxisMinValue( 0, "12/2001" );
chart.SetAxisMaxValue( 0, "02/2003" );

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

//X axis and Y axis cross at (12/1999,110)
chart.SetAxisCrossValue( 0, "12/2001" );
chart.SetAxisCrossValue( 1, 110 );

chart.ExportAsResponse();

See Also

SetAxisMaxValue Method | SetAxisCrossValue Method | ResetAxisBounds Method

Applies To: Chart Object