Axis
Axis class
Encapsulates the object that represents an axis of chart.
Properties
| Name | Type | Description |
|---|---|---|
| Area | Area | Gets the Area . |
| IsAutomaticMinValue | boolean | Indicates whether the min value is automatically assigned. |
| MinValue | Object | Represents the minimum value on the value axis. The minValue type only can be double or DateTime |
| IsAutomaticMaxValue | boolean | Indicates whether the max value is automatically assigned. |
| MaxValue | Object | Represents the maximum value on the value axis. The maxValue type only can be double or DateTime |
| IsAutomaticMajorUnit | boolean | Indicates whether the major unit of the axis is automatically assigned. |
| MajorUnit | float | Represents the major units for the axis. The major units must be greater than zero. |
| IsAutomaticMinorUnit | boolean | Indicates whether the minor unit of the axis is automatically assigned. |
| MinorUnit | float | Represents the minor units for the axis. The minor units must be greater than zero. |
| AxisLine | Line | Gets the appearance of an Axis. |
| MajorTickMark | int | Represents the type of major tick mark for the specified axis. The value of the property is TickMarkType integer constan |
| MinorTickMark | int | Represents the type of minor tick mark for the specified axis. The value of the property is TickMarkType integer constan |
| TickLabelPosition | int | Represents the position of tick-mark labels on the specified axis. The value of the property is TickLabelPositionType in |
| CrossAt | float | Represents the point on the value axis where the category axis crosses it. The number should be a integer when it applie |
| CrossType | int | Represents the CrossType on the specified axis where the other axis crosses. The value of the property is CrossType inte |
| LogBase | float | Represents the logarithmic base. Default value is 10.Only applies for Excel2007. |
| IsLogarithmic | boolean | Represents if the value axis scale type is logarithmic or not. |
| IsPlotOrderReversed | boolean | Represents if Microsoft Excel plots data points from last to first. |
| AxisBetweenCategories | boolean | Represents if the value axis crosses the category axis between categories. This property applies only to category axes, |
| TickLabels | TickLabels | Returns a TickLabels object that represents the tick-mark labels for the specified axis. |
| TickLabelSpacing | int | Represents the number of categories or series between tick-mark labels. Applies only to category and series axes. The nu |
| IsAutoTickLabelSpacing | boolean | Indicates whether the spacing of tick label is automatic |
| TickMarkSpacing | int | Returns or sets the number of categories or series between tick marks. Applies only to category and series axes. The num |
| DisplayUnit | int | Represents the unit label for the specified axis. The value of the property is DisplayUnitType integer constant. |
| CustUnit | int | Specifies a custom value for the display unit. NOTE: This property is now obsolete. Instead, please use Axis.CustomUnit |
| CustomUnit | int | Specifies a custom value for the display unit. |
| CustomDisplayUnit | float | |
| DisplayUnitLabel | DisplayUnitLabel | Represents a unit label on an axis in the specified chart. Unit labels are useful for charting large values— for example |
| IsDisplayUnitLabelShown | boolean | Represents if the display unit label is shown on the specified axis. The default value is True. |
| Title | Title | Gets the axis’ title. |
| CategoryType | int | Represents the category axis type. The value of the property is CategoryType integer constant. |
| BaseUnitScale | int | Represents the base unit scale for the category axis. The value of the property is TimeUnit integer constant. Setting th |
| IsBaseUnitAuto | boolean | Represents whether the base unit is automatic. |
| MajorUnitScale | int | Represents the major unit scale for the category axis. The value of the property is TimeUnit integer constant. |
| MinorUnitScale | int | Represents the major unit scale for the category axis. The value of the property is TimeUnit integer constant. |
| IsVisible | boolean | Represents if the axis is visible. |
| MajorGridLines | Line | Represents major gridlines on a chart axis. |
| MinorGridLines | Line | Represents minor gridlines on a chart axis. |
| HasMultiLevelLabels | boolean | Indicates whether the labels shall be shown as multi level. Only valid for category axis. |
| AxisLabels | ArrayList | Gets the labels of the axis after call Chart.Calculate() method. NOTE: This member is now obsolete. Instead, please use |
| Bins | AxisBins | Represents bins on a chart(Histogram/Pareto) axis |
Methods
| Name | Description |
|---|---|
| getAxisTexts | Gets the labels of the axis after call Chart.Calculate() method. |
Axis.Area property
Gets the Area .
Type: Area
Axis.IsAutomaticMinValue property
Indicates whether the min value is automatically assigned.
Type: boolean
Axis.MinValue property
Represents the minimum value on the value axis. The minValue type only can be double or DateTime
Type: Object
Axis.IsAutomaticMaxValue property
Indicates whether the max value is automatically assigned.
Type: boolean
Axis.MaxValue property
Represents the maximum value on the value axis. The maxValue type only can be double or DateTime
Type: Object
Axis.IsAutomaticMajorUnit property
Indicates whether the major unit of the axis is automatically assigned.
Type: boolean
Axis.MajorUnit property
Represents the major units for the axis. The major units must be greater than zero.
Type: float
Axis.IsAutomaticMinorUnit property
Indicates whether the minor unit of the axis is automatically assigned.
Type: boolean
Axis.MinorUnit property
Represents the minor units for the axis. The minor units must be greater than zero.
Type: float
Axis.AxisLine property
Gets the appearance of an Axis.
Type: Line
Axis.MajorTickMark property
Represents the type of major tick mark for the specified axis. The value of the property is TickMarkType integer constant.
Type: int
Axis.MinorTickMark property
Represents the type of minor tick mark for the specified axis. The value of the property is TickMarkType integer constant.
Type: int
Axis.TickLabelPosition property
Represents the position of tick-mark labels on the specified axis. The value of the property is TickLabelPositionType integer constant.
Type: int
Axis.CrossAt property
Represents the point on the value axis where the category axis crosses it. The number should be a integer when it applies to category axis. And the value must be between 1 and 31999.
Type: float
Axis.CrossType property
Represents the CrossType on the specified axis where the other axis crosses. The value of the property is CrossType integer constant.
Type: int
Axis.LogBase property
Represents the logarithmic base. Default value is 10.Only applies for Excel2007.
Type: float
Axis.IsLogarithmic property
Represents if the value axis scale type is logarithmic or not.
Type: boolean
Axis.IsPlotOrderReversed property
Represents if Microsoft Excel plots data points from last to first.
Type: boolean
Axis.AxisBetweenCategories property
Represents if the value axis crosses the category axis between categories. This property applies only to category axes, and it doesn’t apply to 3-D charts.
Type: boolean
Axis.TickLabels property
Returns a TickLabels object that represents the tick-mark labels for the specified axis.
Type: TickLabels
Axis.TickLabelSpacing property
Represents the number of categories or series between tick-mark labels. Applies only to category and series axes. The number must be between 1 and 31999.
Type: int
Axis.IsAutoTickLabelSpacing property
Indicates whether the spacing of tick label is automatic
Type: boolean
Axis.TickMarkSpacing property
Returns or sets the number of categories or series between tick marks. Applies only to category and series axes. The number must be between 1 and 31999.
Type: int
Axis.DisplayUnit property
Represents the unit label for the specified axis. The value of the property is DisplayUnitType integer constant.
Type: int
Axis.CustUnit property
Specifies a custom value for the display unit. NOTE: This property is now obsolete. Instead, please use Axis.CustomUnit property. This property will be removed 12 months later since January 2023. Aspose apologizes for any inconvenience you may have experienced.
Type: int
Axis.CustomUnit property
Specifies a custom value for the display unit.
Type: int
Axis.CustomDisplayUnit property
Type: float
Axis.DisplayUnitLabel property
Represents a unit label on an axis in the specified chart. Unit labels are useful for charting large values— for example, in the millions or billions.
Type: DisplayUnitLabel
Axis.IsDisplayUnitLabelShown property
Represents if the display unit label is shown on the specified axis. The default value is True.
Type: boolean
Axis.Title property
Gets the axis’ title.
Type: Title
Axis.CategoryType property
Represents the category axis type. The value of the property is CategoryType integer constant.
Type: int
Axis.BaseUnitScale property
Represents the base unit scale for the category axis. The value of the property is TimeUnit integer constant. Setting this property only takes effect when the CategoryType property is set to TimeScale.
Type: int
Axis.IsBaseUnitAuto property
Represents whether the base unit is automatic.
Type: boolean
Axis.MajorUnitScale property
Represents the major unit scale for the category axis. The value of the property is TimeUnit integer constant.
Type: int
Axis.MinorUnitScale property
Represents the major unit scale for the category axis. The value of the property is TimeUnit integer constant.
Type: int
Axis.IsVisible property
Represents if the axis is visible.
Type: boolean
Axis.MajorGridLines property
Represents major gridlines on a chart axis.
Type: Line
Axis.MinorGridLines property
Represents minor gridlines on a chart axis.
Type: Line
Axis.HasMultiLevelLabels property
Indicates whether the labels shall be shown as multi level. Only valid for category axis.
Type: boolean
Axis.AxisLabels property
Gets the labels of the axis after call Chart.Calculate() method. NOTE: This member is now obsolete. Instead, please use Axis.GetAxisTexts method. This property will be removed 12 months later since November 2023. Aspose apologizes for any inconvenience you may have experienced.
Type: ArrayList
Axis.Bins property
Represents bins on a chart(Histogram/Pareto) axis
Type: AxisBins
getAxisTexts()
Gets the labels of the axis after call Chart.Calculate() method.