Internet Vision Software
Index : Common Attributes : XAxisStyle Attribute

../online_help/images/n_admin.gif

Quick Reference...

Attribute Name
XAxisStyle
Type Integer (0..2)
Summary: Sets the scale mode for the X axis (the Y axis on horizontal graphs)

Description:

The XAXISSTYLE property sets the method for determining the scale and range of a graph's X axis (or the Y axis of horizontal bar graphs and Gantt charts). This property doesn't apply to pie charts or polar graphs.
The effect of XAXISSTYLE depends on whether or not you've set values for the XPosData property. Bubble, lin/log, and log/log graphs always have XPosData values, scatter graphs generally do, and other graph types (except pie and Gantt charts) can have them if you choose.

Without XPosData
If you don't provide XPosData values, each data point in each data set has an explicit Y value (determined by either the ST_DataSet{0..} or the DB_DataSets attribute) and an implicit X value.

Value Effect
0 Zero origin The X axis always begins at 0 (1 for bar graphs) and has one tick mark per point. You can't set a minimum value, maximum value, or number of ticks for the axis.
1 Variable origin This setting has no effect--it works just like setting 0 (zero origin).
2 User-defined You can specify the number of tick marks for the X axis using the XAxisTicks property. However, you can't set the minimum and maximum values for the X axis--any settings for XAxisMax and XAxisMin are ignored. For details, see the entry for XAxisTicks.

With XPosData
Graphs with XPosData values are true X-Y graphs--each point has both an explicit X value (determined by either the ST_XPosDataSet{0..} or the DB_XPosDataSets attribute) and an explicit Y value (determined by either the ST_DataSet{0..} or the DB_DataSets attribute).
In this type of graph, the XAxisStyle property provides the same control over the X axis as the YAxisStyle property provides over the Y axis.

Value Effect
0 Zero origin The Graph control automatically calculates the X axis range based on your XPosData values. The range includes the X origin (zero) and extends at least far enough in the positive and negative directions to include all XPosData. You can't set a minimum value, maximum value, or number of ticks for the axis.
1 Variable origin The Graph control attempts to zoom in on your XPosData values when it calculates the X axis range. The range is made at least wide enough to include all XPosData values, but it doesn't necessarily include the X origin (zero). You can't set a minimum value, maximum value, or number of ticks for the axis.
This setting is useful when all your XPosData values are clustered in a narrow range that doesn't include zero.
2 User-defined The X axis is drawn according to your settings for the minimum, maximum, and number of ticks. Refer to the XAxisTicks, XAxisMax, and XAxisMin properties.


Remarks:

None.

Example...

<CFXGRAPHICSSERVER ... XAxisStyle="1" ... >

This would set the X Axis Style to 1. The exact effect would depend on the setting of XPosData.

Copyright 1999 Internet Vision Software Limited