Represents a single axis in a chart.

Axis

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

Returns Axis

$t: Type
axisBetweenCategories: boolean
axisTitle: ChartTitle
baseUnit: TimeUnit
baseUnitIsAuto: boolean
categoryType: CategoryType
crosses: AxisCrosses
crossesAt: number
displayUnit: DisplayUnit
displayUnitCustom: number
displayUnitLabel: DisplayUnitLabel
gapWidth: number
logBase: number
majorGridLines: ChartGridLines
majorTickMark: TickMark
majorUnit: number
majorUnitIsAuto: boolean
majorUnitScale: TimeUnit
maximumScale: number
maximumScaleIsAuto: boolean
minimumScale: number
minimumScaleIsAuto: boolean
minorGridLines: ChartGridLines
minorTickMark: TickMark
minorUnit: number
minorUnitIsAuto: boolean
minorUnitScale: TimeUnit
position: AxisPosition
reversePlotOrder: boolean
scaleType: ScaleType
tickLabelPosition: TickLabelPosition
tickLabelSpacing: number
tickLabelSpacingIsAuto: boolean
tickLines: ChartTickLines
tickMarkSpacing: number
visible: boolean

Returns the group for the specified axis. Read-only

get axisGroup(): AxisGroup

Returns AxisGroup

Inherited from: ChartObject

Returns the owning chart (read-only)

get chart(): WorksheetChart

Returns WorksheetChart

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

Inherited from: ChartObject

The owning sheet (read-only)

get sheet(): Sheet

Returns Sheet

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

get tickLabels(): TickLabels

Returns TickLabels

Returns the type of the axis (read-only)

get type(): AxisType

Returns AxisType

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