Dundas Chart for Windows Forms
Axis Class
Members  See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace : Axis Class


Provides axes functionality for the Chart control.


This class gives information to chart series about position in the chart area and keeps all necessary information about axes.

Object Model












Syntax

Visual Basic (Declaration)  
Public Class Axis 
   Inherits AxisLabels
Visual Basic (Usage) Copy Code
Dim instance As Axis
C#  
public class Axis : AxisLabels 

Remarks

Provides axes for the Chart control, and is exposed by the AxisX, AxisY, AxisX2 and AxisY2 properties of ChartArea objects.

For all charts (except bar, stacked bar, pie and doughnut) the primary and secondary axes are as follows:

Axis Type Description
Primary X-Axis Bottom-horizontal axis.
Secondary X-Axis Top-horizontal axis.
Primary Y-Axis Left-vertical axis.
Secondary Y-Axis Right-vertical axis

Bar-type charts have their axes rotated 90 degrees clockwise, so the primary X axis for these two chart types is the left-vertical axis.

Note that there can only be one set of axes (two vertical and two horizontal) for each ChartArea object.

The Axis class also has several methods used for converting axis values to absolute pixel coordinates (useful for 2D custom drawing) or relative coordinates (useful for 3D custom drawing). Absolute and relative coordinates can also be converted to axis values.

The following are the most important axis elements that are exposed using the Axis class:

Axis Element Description
Axis Labels The labels and their associated properties of an axis.
Grid Lines The major and minor grid lines of an axis.
Tick Marks The major and minor tick marks of an axis.
Strip Lines Strip lines.

Inheritance Hierarchy

System.Object
   Dundas.Charting.WinControl.ChartElement
      Dundas.Charting.WinControl.AxisScale
         Dundas.Charting.WinControl.AxisLabels
            Dundas.Charting.WinControl.Axis
               Dundas.Charting.WinControl.SubAxis

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.