Version

Axis Property (UltraChart)

Returns an Appearance object that you can use to access all the formatting properties of the chart's axes.
Syntax
'Declaration
 
Public Property Axis As ChartGridAppearance
public ChartGridAppearance Axis {get; set;}
Remarks
This object provides access to the chart's x, y and where applicable, z axes.
Example
Set Various Properties of the Axis
'All axis are accessed using Chart.Axis.AxisLetter
'Avaliable Axis Names
'X,Y,X2,Y2,Z, example Chart.Axis.X

'Color behind the plane in 3D charts
UltraChart1.Axis.BackColor = Color.Beige
'Determines the height/width of the axis
UltraChart1.Axis.X.Extent = 75
'Set the color of the respective Axis
UltraChart1.Axis.Y.LineColor = Color.Red
'set the line drawstyle for the axis line
UltraChart1.Axis.Z.LineDrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.DashDot
'set the endpoint style of the line
UltraChart1.Axis.Z.LineEndCapStyle = Infragistics.UltraChart.Shared.Styles.LineCapStyle.ArrowAnchor
'determines the base for the log function, example, Lgbase=10, produces 1,10,100,1000.  Logbase=2 produces 1,2,4,8
UltraChart1.Axis.Y.LogBase = 10
'set whether the axis is linear or a logarithmic scale
UltraChart1.Axis.Y.NumericAxisType = Infragistics.UltraChart.Shared.Styles.NumericAxisType.Linear
'sets the maximum value displayed on the axis
UltraChart1.Axis.Y.RangeMax = 100
'set the minimum value displayed on the axis
UltraChart1.Axis.Y.RangeMin = 0
'set whether to autoscale the axis based on values or to use custom set RangeMin/Mx
UltraChart1.Axis.Z.RangeType = Infragistics.UltraChart.Shared.Styles.AxisRangeType.Custom

'sets the style of the intervals, percentages or hardcoded numbers
UltraChart1.Axis.Z.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.DataInterval

'sets the interval of the tickmarks when using interval style
UltraChart1.Axis.Z.TickmarkInterval = 5
'sets the percentage value when using percentage tickmark style
UltraChart1.Axis.Z.TickmarkPercentage = 10
'determines whether the axis is visible or not
UltraChart1.Axis.Z.Visible = True
// all axis are accessed using Chart.Axis.AxisLetter
// avaliable Axis Names
// x,Y,X2,Y2,Z, example Chart.Axis.X

// color behind the plane in 3D charts
UltraChart1.Axis.BackColor = Color.Beige;
// determines the height/width of the axis
UltraChart1.Axis.X.Extent = 75;
// set the color of the respective Axis
UltraChart1.Axis.Y.LineColor = Color.Red;
// set the line drawstyle for the axis line
UltraChart1.Axis.Z.LineDrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.DashDot;
// set the endpoint style of the line
UltraChart1.Axis.Z.LineEndCapStyle = Infragistics.UltraChart.Shared.Styles.LineCapStyle.ArrowAnchor;
// determines the base for the log function, example, Lgbase=10, produces 1,10,100,1000.  Logbase=2 produces 1,2,4,8
UltraChart1.Axis.Y.LogBase = 10;
// set whether the axis is linear or a logarithmic scale
UltraChart1.Axis.Y.NumericAxisType = Infragistics.UltraChart.Shared.Styles.NumericAxisType.Linear;
// sets the maximum value displayed on the axis
UltraChart1.Axis.Y.RangeMax = 100;
// set the minimum value displayed on the axis
UltraChart1.Axis.Y.RangeMin = 0;
// set whether to autoscale the axis based on values or to use custom set RangeMin/Mx
UltraChart1.Axis.Z.RangeType = Infragistics.UltraChart.Shared.Styles.AxisRangeType.Custom;

// sets the style of the intervals, percentages or hardcoded numbers
UltraChart1.Axis.Z.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.DataInterval;

// sets the interval of the tickmarks when using interval style
UltraChart1.Axis.Z.TickmarkInterval = 5;
// sets the percentage value when using percentage tickmark style
UltraChart1.Axis.Z.TickmarkPercentage = 10;
// determines whether the axis is visible or not
UltraChart1.Axis.Z.Visible = True;
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also