Represents a single axis in a chart.

Axis

new Axis(a: IChartObject, b: AxisType, c: AxisGroup): Axis

Returns Axis

True if the value axis crosses the category axis between categories.

get axisBetweenCategories(): boolean

Returns boolean

set axisBetweenCategories(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns the group for the specified axis. Read-only

get axisGroup(): AxisGroup

Returns AxisGroup

Returns or sets a [[ChartTitle]] object that represents the title of the axis.

get axisTitle(): ChartTitle

Returns ChartTitle

set axisTitle(a: ChartTitle): void

Parameters

Returns void

Returns or sets the base unit for the axis. Setting this property has no visible effect if the [[categoryType]] property for the specified axis is set to 'CategoryScale'. The set value is retained, however, and takes effect when the CategoryType property is set to 'TimeScale'.

get baseUnit(): TimeUnit

Returns TimeUnit

set baseUnit(a: TimeUnit): void

Parameters

Returns void

True if Excel chooses appropriate base units for the specified category axis. The default value is True.

get baseUnitIsAuto(): boolean

Returns boolean

set baseUnitIsAuto(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns or sets the category axis type.

get categoryType(): CategoryType

Returns CategoryType

set categoryType(a: CategoryType): void

Parameters

Returns void

Inherited from: ChartObject

Returns the owning chart (read-only)

get chart(): WorksheetChart

Returns WorksheetChart

Returns or sets the point on the specified axis where the other axis crosses.

get crosses(): AxisCrosses

Returns AxisCrosses

set crosses(a: AxisCrosses): void

Parameters

Returns void

Returns or sets the point on the [[Axis]] at which the perpendicular axis intersects it.

get crossesAt(): number

Returns number

set crossesAt(a: number): void

Parameters

  • a: number

Returns void

Returns or sets the unit label for the value axis.

get displayUnit(): DisplayUnit

Returns DisplayUnit

set displayUnit(a: DisplayUnit): void

Parameters

Returns void

If the value of the DisplayUnit property 'Custom' , the DisplayUnitCustom property returns or sets the value of the displayed units. The value must be from 0 through 10E307

get displayUnitCustom(): number

Returns number

set displayUnitCustom(a: number): void

Parameters

  • a: number

Returns void

Returns or sets an [[displayUnitLabel]] object.

get displayUnitLabel(): DisplayUnitLabel

Returns DisplayUnitLabel

set displayUnitLabel(a: DisplayUnitLabel): void

Parameters

Returns void

Returns or sets a value indicating the width of the gaps between data points or series, expressed as a percentage.

get gapWidth(): number | null

Returns number | null

set gapWidth(a: number | null): void

Parameters

  • a: number | null

Returns void

Returns or sets the base of the logarithm when you are using log scales. Attempting to set this property to a value less than 2 causes an error. The default value is 10.

get logBase(): number

Returns number

set logBase(a: number): void

Parameters

  • a: number

Returns void

Returns a [[ChartGridLines]] object which defines the color and weight of the major ticklines.

get majorGridLines(): ChartGridLines

Returns ChartGridLines

set majorGridLines(a: ChartGridLines): void

Parameters

Returns void

Returns or sets the type of major tick mark for the specified axis.

get majorTickMark(): TickMark

Returns TickMark

set majorTickMark(a: TickMark): void

Parameters

Returns void

Returns the major interval unit.

get majorUnit(): number

Returns number

set majorUnit(a: number): void

Parameters

  • a: number

Returns void

True if Excel calculates the major units for the value axis.

get majorUnitIsAuto(): boolean

Returns boolean

set majorUnitIsAuto(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns or sets the major unit scale value for the category axis when the [[categoryType]] property is set to 'TimeScale'.

get majorUnitScale(): TimeUnit

Returns TimeUnit

set majorUnitScale(a: TimeUnit): void

Parameters

Returns void

Returns or sets the maximum value on the value axis.

get maximumScale(): number

Returns number

set maximumScale(a: number): void

Parameters

  • a: number

Returns void

True if Excel calculates the maximum value for the value axis.

get maximumScaleIsAuto(): boolean

Returns boolean

set maximumScaleIsAuto(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns or sets the minimum value on the value axis.

get minimumScale(): number

Returns number

set minimumScale(a: number): void

Parameters

  • a: number

Returns void

True if Excel calculates the minimum value for the value axis.

get minimumScaleIsAuto(): boolean

Returns boolean

set minimumScaleIsAuto(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a [[ChartGridLines]] object which defines the color and weight of the minor ticklines.

get minorGridLines(): ChartGridLines

Returns ChartGridLines

set minorGridLines(a: ChartGridLines): void

Parameters

Returns void

Returns or sets the type of minor tick mark for the specified axis.

get minorTickMark(): TickMark

Returns TickMark

set minorTickMark(a: TickMark): void

Parameters

Returns void

Returns the minor interval unit.

get minorUnit(): number

Returns number

set minorUnit(a: number): void

Parameters

  • a: number

Returns void

True if Excel calculates the minor units for the value axis.

get minorUnitIsAuto(): boolean

Returns boolean

set minorUnitIsAuto(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns or sets the minor unit scale value for the category axis when the [[categoryType]] property is set to 'TimeScale'.

get minorUnitScale(): TimeUnit

Returns TimeUnit

set minorUnitScale(a: TimeUnit): void

Parameters

Returns void

Inherited from: ChartObject

returns this object's owner. (read-only) The owner or null if this object is owned directly by the Chart

get owner(): ChartObject

Returns ChartObject

Returns or sets an [[AxisPosition]] value which determines the placement of the axis as relative to the chart space.

get position(): AxisPosition

Returns AxisPosition

set position(a: AxisPosition): void

Parameters

Returns void

True if Excel plots data points from last to first.

get reversePlotOrder(): boolean

Returns boolean

set reversePlotOrder(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns or sets a value indicating whether the axis scale is linear or logarithmic.

get scaleType(): ScaleType

Returns ScaleType

set scaleType(a: ScaleType): void

Parameters

Returns void

Inherited from: ChartObject

The owning sheet (read-only)

get sheet(): Sheet

Returns Sheet

Describes the position of tick-mark labels on the specified axis.

get tickLabelPosition(): TickLabelPosition

Returns TickLabelPosition

set tickLabelPosition(a: TickLabelPosition): void

Parameters

Returns void

Returns a TickLabels object that represents the tick-mark labels for the specified axis. Read-only.

get tickLabels(): TickLabels

Returns TickLabels

Returns or sets the number of categories or series between tick-mark labels. Applies only to category and series axes. Can be a value from 1 through 31999.

get tickLabelSpacing(): number

Returns number

set tickLabelSpacing(a: number): void

Parameters

  • a: number

Returns void

Returns or sets whether or not the tick label spacing is automatic.

get tickLabelSpacingIsAuto(): boolean

Returns boolean

set tickLabelSpacingIsAuto(a: boolean): void

Parameters

  • a: boolean

Returns void

Determines the appearance of the tick lines.

get tickLines(): ChartTickLines

Returns ChartTickLines

set tickLines(a: ChartTickLines): void

Parameters

Returns void

Returns or sets the number of categories or series between tick marks. Applies only to category and series axes. Can be a value from 1 through 31999.

get tickMarkSpacing(): number

Returns number

set tickMarkSpacing(a: number): void

Parameters

  • a: number

Returns void

Returns the type of the axis (read-only)

get type(): AxisType

Returns AxisType

Returns or sets whether or not the axis is visible.

get visible(): boolean

Returns boolean

set visible(a: boolean): void

Parameters

  • a: boolean

Returns void

Inherited from: ChartObject

The owning workbook (read-only)

get workbook(): Workbook

Returns Workbook

Inherited from: ChartObject

The owning worksheet (read-only)

get worksheet(): Worksheet

Returns Worksheet

Sets the values of the [[majorUnit]] and [[minorUnit]] properties.

setMajorMinorUnit(majorUnit: number, minorUnit: number): void

Parameters

  • majorUnit: number

    The new value for the [[majorUnit]] property.

  • minorUnit: number

    The new value for the [[minorUnit]] property.

Returns void