Axis

Axis class

Encapsulates the object that represents an axis of chart.

Properties

NameTypeDescription
AreaAreaGets the Area .
IsAutomaticMinValuebooleanIndicates whether the min value is automatically assigned.
MinValueObjectRepresents the minimum value on the value axis. The minValue type only can be double or DateTime
IsAutomaticMaxValuebooleanIndicates whether the max value is automatically assigned.
MaxValueObjectRepresents the maximum value on the value axis. The maxValue type only can be double or DateTime
IsAutomaticMajorUnitbooleanIndicates whether the major unit of the axis is automatically assigned.
MajorUnitfloatRepresents the major units for the axis. The major units must be greater than zero.
IsAutomaticMinorUnitbooleanIndicates whether the minor unit of the axis is automatically assigned.
MinorUnitfloatRepresents the minor units for the axis. The minor units must be greater than zero.
AxisLineLineGets the appearance of an Axis.
MajorTickMarkintRepresents the type of major tick mark for the specified axis. The value of the property is TickMarkType integer constan
MinorTickMarkintRepresents the type of minor tick mark for the specified axis. The value of the property is TickMarkType integer constan
TickLabelPositionintRepresents the position of tick-mark labels on the specified axis. The value of the property is TickLabelPositionType in
CrossAtfloatRepresents the point on the value axis where the category axis crosses it. The number should be a integer when it applie
CrossTypeintRepresents the CrossType on the specified axis where the other axis crosses. The value of the property is CrossType inte
LogBasefloatRepresents the logarithmic base. Default value is 10.Only applies for Excel2007.
IsLogarithmicbooleanRepresents if the value axis scale type is logarithmic or not.
IsPlotOrderReversedbooleanRepresents if Microsoft Excel plots data points from last to first.
AxisBetweenCategoriesbooleanRepresents if the value axis crosses the category axis between categories. This property applies only to category axes,
TickLabelsTickLabelsReturns a TickLabels object that represents the tick-mark labels for the specified axis.
TickLabelSpacingintRepresents the number of categories or series between tick-mark labels. Applies only to category and series axes. The nu
IsAutoTickLabelSpacingbooleanIndicates whether the spacing of tick label is automatic
TickMarkSpacingintReturns or sets the number of categories or series between tick marks. Applies only to category and series axes. The num
DisplayUnitintRepresents the unit label for the specified axis. The value of the property is DisplayUnitType integer constant.
CustUnitintSpecifies a custom value for the display unit. NOTE: This property is now obsolete. Instead, please use Axis.CustomUnit
CustomUnitintSpecifies a custom value for the display unit.
CustomDisplayUnitfloat
DisplayUnitLabelDisplayUnitLabelRepresents a unit label on an axis in the specified chart. Unit labels are useful for charting large values— for example
IsDisplayUnitLabelShownbooleanRepresents if the display unit label is shown on the specified axis. The default value is True.
TitleTitleGets the axis’ title.
CategoryTypeintRepresents the category axis type. The value of the property is CategoryType integer constant.
BaseUnitScaleintRepresents the base unit scale for the category axis. The value of the property is TimeUnit integer constant. Setting th
IsBaseUnitAutobooleanRepresents whether the base unit is automatic.
MajorUnitScaleintRepresents the major unit scale for the category axis. The value of the property is TimeUnit integer constant.
MinorUnitScaleintRepresents the major unit scale for the category axis. The value of the property is TimeUnit integer constant.
IsVisiblebooleanRepresents if the axis is visible.
MajorGridLinesLineRepresents major gridlines on a chart axis.
MinorGridLinesLineRepresents minor gridlines on a chart axis.
HasMultiLevelLabelsbooleanIndicates whether the labels shall be shown as multi level. Only valid for category axis.
AxisLabelsArrayListGets the labels of the axis after call Chart.Calculate() method. NOTE: This member is now obsolete. Instead, please use
BinsAxisBinsRepresents bins on a chart(Histogram/Pareto) axis

Methods

NameDescription
getAxisTextsGets 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.