Provides methods and properties that manage axes in the Chart control.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
Gets or sets the arrow style of a two-dimensional (2D) axis; this style is not applied to three-dimensional (3D) chart areas.
This API supports the product infrastructure and is not intended to be used directly from your code. Gets the name of the axis, which can be either X, Y, X2 or Y2.
Gets or sets the location at which an axis is crossed by its associated axis.
Gets or sets a value that indicates whether an axis is enabled.
Gets or sets the color of interlaced strip lines.
Gets or sets the interval of an axis.
Gets or sets a flag that determines if a fixed number of intervals is used on the axis, or if the number of intervals depends on the axis size.
Gets or sets the interval offset of an axis.
Gets or sets the interval offset type of an axis.
Gets or sets the interval type of an axis.
Gets or sets a flag that determines if interlaced strip lines are displayed for an axis.
Gets or sets a flag that determines whether axis labels are automatically fitted.
Gets or sets a flag which indicates whether the axis is logarithmic. Zeros or negative data values are not allowed on logarithmic charts.
Gets or sets a flag that determines whether an axis margin will be used.
Gets or sets a flag that determines whether tick marks and axis labels move with an axis if the crossing point of an axis changes.
Gets or sets a flag which indicates whether the axis is reversed.
Gets or sets a flag which indicates whether the minimum value of the axis will be automatically set to zero if all data point values are positive. If there are negative data point values, the minimum value of the data points will be used.
Gets or sets the maximum font size that can be used by the label auto-fitting algorithm.
Gets or sets the minimum font size that can be used by the label auto-fitting algorithm.
Gets or sets the allowable label changes that can be made to enable the label to be fit along an axis.
Gets or sets the LabelStyle properties of an axis.
Gets or sets the line color of an axis.
Gets or sets the line style of an axis.
Gets or sets the line width of an axis, in pixels.
Gets or sets a value for the logarithm base for the logarithmic axis.
Gets or sets a Grid object used to set the major grid line properties for an axis.
Gets or sets a TickMark object used to set the major tick mark properties of an axis.
Gets or sets the map area attributes of an axis.
Gets or sets the maximum value of an axis.
Gets or sets the maximum size of the axis, measured as a percentage of the chart area. This value is used by the automatic layout algorithm.
Gets or sets the minimum value of an axis.
Gets or sets a Grid object used to specify the minor grid lines attributes of an axis.
Gets or sets a TickMark object used to set the minor tick mark properties of an axis.
Gets or sets the name of the axis.(Overrides ChartNamedElement.Name.)
Gets or sets the postback value that can be processed on a Click event.
Gets or sets the axis automatic scale break style.
Gets or sets the view of an axis.
Gets or sets an object associated with this chart element.(Inherited from ChartElement.)
Gets or sets the orientation of the text in the axis title.
Gets or sets the title of the axis.
Gets or sets the alignment of an axis title.
Gets or sets the title font properties of an axis.
Gets or sets the text color of an axis title.
Gets or sets the tooltip used for the axis.
Gets or sets the URL target of the axis.
Releases unmanaged and, optionally, managed resources.(Overrides ChartElement.Dispose(Boolean).)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Returns a hash function for a particular type.(Inherited from ChartElement.)
Converts an axis value to a relative position (0-100%). If an axis is logarithmic, the value is converted to a linear scale.
Converts an absolute pixel position along an axis to an axis value. This method only works in paint events.
Converts a relative coordinate along an axis to an axis value. This method only works in paint events.
Automatically rounds axis values.
Converts an axis value to an absolute coordinate along an axis. Measured in pixels. This method only works in paint events.
Converts an axis value to its relative position (0-100%). If an axis has a logarithmic scale, the value is converted to a linear scale. This method only works in paint events.
For all charts—except bar, stacked bar, pie and doughnut—the primary and secondary axes are as follows:
Bottom horizontal axis.
Top horizontal axis.
Left vertical axis.
Right vertical axis.
Bar and stacked-bar charts have their axes rotated 90 degrees clockwise, so the primary X axis for these two chart types is the left-vertical axis.
Note There can be only one set of axes—two vertical and two horizontal—for each ChartArea object.
Theclass also contains several methods that can be used to convert axis values to absolute pixel coordinates, which are useful for 2D custom drawing, or to relative coordinates, which are useful for 3D custom drawing. Absolute and relative coordinates can also be converted to axis values.
The following are the most important axis elements exposed by theclass:
The labels of an axis, and their associated properties.
The major and minor grid lines of an axis.
The major and minor tick marks of an axis.
Available since 4.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.