Dundas Chart for ASP.NET
Axis Class
Members  See Also  Send comments on this topic.
Dundas.Charting.WebControl 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.WebControl.ChartElement
      Dundas.Charting.WebControl.AxisScale
         Dundas.Charting.WebControl.AxisLabels
            Dundas.Charting.WebControl.Axis
               Dundas.Charting.WebControl.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

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.