Represents the base class from which all axis types are derived.

The Axis is an array of axis objects.

<igx-data-chart
    [dataSource]="data" >
    <igx-category-x-axis
		label="label"
		#xAxis>
    </igx-category-x-axis>
    <igx-numeric-y-axis
		#yAxis>
    </igx-numeric-y-axis>
</igx-data-chart>

IgxAxisComponent

new IgxAxisComponent(): IgxAxisComponent

Returns IgxAxisComponent

ngAcceptInputType_annotations: string | IgxAxisAnnotationCollection

ngAcceptInputType_companionAxisCrossingValue

Section titled "ngAcceptInputType_companionAxisCrossingValue"
ngAcceptInputType_companionAxisCrossingValue: string | number

ngAcceptInputType_companionAxisEnabled

Section titled "ngAcceptInputType_companionAxisEnabled"
ngAcceptInputType_companionAxisEnabled: string | boolean

ngAcceptInputType_companionAxisIsInverted

Section titled "ngAcceptInputType_companionAxisIsInverted"
ngAcceptInputType_companionAxisIsInverted: any

ngAcceptInputType_companionAxisLabelAngle

Section titled "ngAcceptInputType_companionAxisLabelAngle"
ngAcceptInputType_companionAxisLabelAngle: string | number

ngAcceptInputType_companionAxisLabelExtent

Section titled "ngAcceptInputType_companionAxisLabelExtent"
ngAcceptInputType_companionAxisLabelExtent: string | number

ngAcceptInputType_companionAxisLabelHorizontalAlignment

Section titled "ngAcceptInputType_companionAxisLabelHorizontalAlignment"
ngAcceptInputType_companionAxisLabelHorizontalAlignment: any

ngAcceptInputType_companionAxisLabelLocation

Section titled "ngAcceptInputType_companionAxisLabelLocation"
ngAcceptInputType_companionAxisLabelLocation: string | AxisLabelsLocation

ngAcceptInputType_companionAxisLabelOpposite

Section titled "ngAcceptInputType_companionAxisLabelOpposite"
ngAcceptInputType_companionAxisLabelOpposite: string | boolean

ngAcceptInputType_companionAxisLabelVerticalAlignment

Section titled "ngAcceptInputType_companionAxisLabelVerticalAlignment"
ngAcceptInputType_companionAxisLabelVerticalAlignment: any

ngAcceptInputType_companionAxisLabelVisible

Section titled "ngAcceptInputType_companionAxisLabelVisible"
ngAcceptInputType_companionAxisLabelVisible: any

ngAcceptInputType_companionAxisMajorStrokeThickness

Section titled "ngAcceptInputType_companionAxisMajorStrokeThickness"
ngAcceptInputType_companionAxisMajorStrokeThickness: string | number

ngAcceptInputType_companionAxisMinExtent

Section titled "ngAcceptInputType_companionAxisMinExtent"
ngAcceptInputType_companionAxisMinExtent: string | number

ngAcceptInputType_companionAxisMinorStrokeThickness

Section titled "ngAcceptInputType_companionAxisMinorStrokeThickness"
ngAcceptInputType_companionAxisMinorStrokeThickness: string | number

ngAcceptInputType_companionAxisShouldAutoTruncateAnnotations

Section titled "ngAcceptInputType_companionAxisShouldAutoTruncateAnnotations"
ngAcceptInputType_companionAxisShouldAutoTruncateAnnotations: any

ngAcceptInputType_companionAxisShouldAvoidAnnotationCollisions

Section titled "ngAcceptInputType_companionAxisShouldAvoidAnnotationCollisions"
ngAcceptInputType_companionAxisShouldAvoidAnnotationCollisions: any

ngAcceptInputType_companionAxisShouldKeepAnnotationsInView

Section titled "ngAcceptInputType_companionAxisShouldKeepAnnotationsInView"
ngAcceptInputType_companionAxisShouldKeepAnnotationsInView: any

ngAcceptInputType_companionAxisStrokeThickness

Section titled "ngAcceptInputType_companionAxisStrokeThickness"
ngAcceptInputType_companionAxisStrokeThickness: string | number

ngAcceptInputType_companionAxisSyncronizedWithPrimaryAxis

Section titled "ngAcceptInputType_companionAxisSyncronizedWithPrimaryAxis"
ngAcceptInputType_companionAxisSyncronizedWithPrimaryAxis: string | boolean

ngAcceptInputType_companionAxisTickLength

Section titled "ngAcceptInputType_companionAxisTickLength"
ngAcceptInputType_companionAxisTickLength: string | number

ngAcceptInputType_companionAxisTickStrokeThickness

Section titled "ngAcceptInputType_companionAxisTickStrokeThickness"
ngAcceptInputType_companionAxisTickStrokeThickness: string | number

ngAcceptInputType_enhancedIntervalMinimumCharacters

Section titled "ngAcceptInputType_enhancedIntervalMinimumCharacters"
ngAcceptInputType_enhancedIntervalMinimumCharacters: string | number

ngAcceptInputType_enhancedIntervalPreferMoreCategoryLabels

Section titled "ngAcceptInputType_enhancedIntervalPreferMoreCategoryLabels"
ngAcceptInputType_enhancedIntervalPreferMoreCategoryLabels: string | boolean
ngAcceptInputType_expectFunctions: string | boolean
ngAcceptInputType_isAngular: string | boolean
ngAcceptInputType_isCategory: string | boolean

ngAcceptInputType_isCategoryDateTime

Section titled "ngAcceptInputType_isCategoryDateTime"
ngAcceptInputType_isCategoryDateTime: string | boolean
ngAcceptInputType_isCompanionAxis: string | boolean
ngAcceptInputType_isContinuous: string | boolean
ngAcceptInputType_isDateTime: string | boolean
ngAcceptInputType_isDisabled: string | boolean
ngAcceptInputType_isHorizontal: string | boolean
ngAcceptInputType_isInverted: string | boolean
ngAcceptInputType_isNumeric: string | boolean
ngAcceptInputType_isOrdinal: string | boolean
ngAcceptInputType_isPiecewise: string | boolean
ngAcceptInputType_isPrimaryAxis: string | boolean
ngAcceptInputType_isRadial: string | boolean
ngAcceptInputType_isSorting: string | boolean
ngAcceptInputType_isVertical: string | boolean
ngAcceptInputType_labelAngle: string | number

ngAcceptInputType_labelBottomMargin

Section titled "ngAcceptInputType_labelBottomMargin"
ngAcceptInputType_labelBottomMargin: string | number
ngAcceptInputType_labelExtent: string | number

ngAcceptInputType_labelFormatSpecifiers

Section titled "ngAcceptInputType_labelFormatSpecifiers"
ngAcceptInputType_labelFormatSpecifiers: string | any[]

ngAcceptInputType_labelHorizontalAlignment

Section titled "ngAcceptInputType_labelHorizontalAlignment"
ngAcceptInputType_labelHorizontalAlignment: any
ngAcceptInputType_labelLeftMargin: string | number
ngAcceptInputType_labelLocation: string | AxisLabelsLocation

ngAcceptInputType_labelMaximumExtent

Section titled "ngAcceptInputType_labelMaximumExtent"
ngAcceptInputType_labelMaximumExtent: string | number

ngAcceptInputType_labelMaximumExtentPercentage

Section titled "ngAcceptInputType_labelMaximumExtentPercentage"
ngAcceptInputType_labelMaximumExtentPercentage: string | number
ngAcceptInputType_labelRightMargin: string | number

ngAcceptInputType_labelShowFirstLabel

Section titled "ngAcceptInputType_labelShowFirstLabel"
ngAcceptInputType_labelShowFirstLabel: string | boolean
ngAcceptInputType_labelTopMargin: string | number

ngAcceptInputType_labelVerticalAlignment

Section titled "ngAcceptInputType_labelVerticalAlignment"
ngAcceptInputType_labelVerticalAlignment: any
ngAcceptInputType_labelVisibility: any

ngAcceptInputType_majorStrokeDashArray

Section titled "ngAcceptInputType_majorStrokeDashArray"
ngAcceptInputType_majorStrokeDashArray: string | number[]

ngAcceptInputType_majorStrokeThickness

Section titled "ngAcceptInputType_majorStrokeThickness"
ngAcceptInputType_majorStrokeThickness: string | number

ngAcceptInputType_minorStrokeDashArray

Section titled "ngAcceptInputType_minorStrokeDashArray"
ngAcceptInputType_minorStrokeDashArray: string | number[]

ngAcceptInputType_minorStrokeThickness

Section titled "ngAcceptInputType_minorStrokeThickness"
ngAcceptInputType_minorStrokeThickness: string | number

ngAcceptInputType_shouldAutoTruncateAnnotations

Section titled "ngAcceptInputType_shouldAutoTruncateAnnotations"
ngAcceptInputType_shouldAutoTruncateAnnotations: string | boolean

ngAcceptInputType_shouldAvoidAnnotationCollisions

Section titled "ngAcceptInputType_shouldAvoidAnnotationCollisions"
ngAcceptInputType_shouldAvoidAnnotationCollisions: string | boolean

ngAcceptInputType_shouldKeepAnnotationsInView

Section titled "ngAcceptInputType_shouldKeepAnnotationsInView"
ngAcceptInputType_shouldKeepAnnotationsInView: string | boolean
ngAcceptInputType_strokeDashArray: string | number[]
ngAcceptInputType_strokeThickness: string | number
ngAcceptInputType_tickLength: string | number

ngAcceptInputType_tickStrokeDashArray

Section titled "ngAcceptInputType_tickStrokeDashArray"
ngAcceptInputType_tickStrokeDashArray: string | number[]

ngAcceptInputType_tickStrokeThickness

Section titled "ngAcceptInputType_tickStrokeThickness"
ngAcceptInputType_tickStrokeThickness: string | number
ngAcceptInputType_titleAngle: string | number

ngAcceptInputType_titleBottomMargin

Section titled "ngAcceptInputType_titleBottomMargin"
ngAcceptInputType_titleBottomMargin: string | number
ngAcceptInputType_titleExtent: string | number

ngAcceptInputType_titleHorizontalAlignment

Section titled "ngAcceptInputType_titleHorizontalAlignment"
ngAcceptInputType_titleHorizontalAlignment: any
ngAcceptInputType_titleLeftMargin: string | number
ngAcceptInputType_titleLocation: string | AxisLabelsLocation

ngAcceptInputType_titleMaximumExtent

Section titled "ngAcceptInputType_titleMaximumExtent"
ngAcceptInputType_titleMaximumExtent: string | number

ngAcceptInputType_titleMaximumExtentPercentage

Section titled "ngAcceptInputType_titleMaximumExtentPercentage"
ngAcceptInputType_titleMaximumExtentPercentage: string | number
ngAcceptInputType_titlePosition: string | AxisTitlePosition
ngAcceptInputType_titleRightMargin: string | number

ngAcceptInputType_titleShowFirstLabel

Section titled "ngAcceptInputType_titleShowFirstLabel"
ngAcceptInputType_titleShowFirstLabel: string | boolean
ngAcceptInputType_titleTopMargin: string | number

ngAcceptInputType_titleVerticalAlignment

Section titled "ngAcceptInputType_titleVerticalAlignment"
ngAcceptInputType_titleVerticalAlignment: any
ngAcceptInputType_titleVisibility: any

ngAcceptInputType_useEnhancedIntervalManagement

Section titled "ngAcceptInputType_useEnhancedIntervalManagement"
ngAcceptInputType_useEnhancedIntervalManagement: string | boolean

ngAcceptInputType_usePerLabelHeightMeasurement

Section titled "ngAcceptInputType_usePerLabelHeightMeasurement"
ngAcceptInputType_usePerLabelHeightMeasurement: string | boolean
ɵcmp: ɵɵComponentDeclaration<IgxAxisComponent, "ng-component", never, object, object, never, never>
ɵfac: ɵɵFactoryDeclaration<IgxAxisComponent, never>
actualMajorStroke: string
actualMinorStroke: string
actualStroke: string
annotations: IgxAxisAnnotationCollection
coercionMethods: any
companionAxisCrossingAxis: IgxAxisComponent
companionAxisCrossingValue: number
companionAxisEnabled: boolean
companionAxisIsInverted: FeatureState
companionAxisLabelAngle: number
companionAxisLabelColor: string
companionAxisLabelExtent: number

companionAxisLabelHorizontalAlignment

Section titled "companionAxisLabelHorizontalAlignment"
companionAxisLabelHorizontalAlignment: HorizontalAlignment
companionAxisLabelLocation: AxisLabelsLocation
companionAxisLabelOpposite: boolean

companionAxisLabelVerticalAlignment

Section titled "companionAxisLabelVerticalAlignment"
companionAxisLabelVerticalAlignment: VerticalAlignment
companionAxisLabelVisible: FeatureState
companionAxisMajorStroke: string
companionAxisMajorStrokeThickness: number
companionAxisMinExtent: number
companionAxisMinorStroke: string
companionAxisMinorStrokeThickness: number

companionAxisShouldAutoTruncateAnnotations

Section titled "companionAxisShouldAutoTruncateAnnotations"
companionAxisShouldAutoTruncateAnnotations: FeatureState

companionAxisShouldAvoidAnnotationCollisions

Section titled "companionAxisShouldAvoidAnnotationCollisions"
companionAxisShouldAvoidAnnotationCollisions: FeatureState

companionAxisShouldKeepAnnotationsInView

Section titled "companionAxisShouldKeepAnnotationsInView"
companionAxisShouldKeepAnnotationsInView: FeatureState
companionAxisStrip: string
companionAxisStroke: string
companionAxisStrokeThickness: number

companionAxisSyncronizedWithPrimaryAxis

Section titled "companionAxisSyncronizedWithPrimaryAxis"
companionAxisSyncronizedWithPrimaryAxis: boolean
companionAxisTickLength: number
companionAxisTickStroke: string
companionAxisTickStrokeThickness: number
companionAxisTitle: string
crossingAxis: IgxAxisComponent
crossingValue: any
enhancedIntervalMinimumCharacters: number

enhancedIntervalPreferMoreCategoryLabels

Section titled "enhancedIntervalPreferMoreCategoryLabels"
enhancedIntervalPreferMoreCategoryLabels: boolean
expectFunctions: boolean
formatLabel: object
isCompanionAxis: boolean
isDisabled: boolean
isInverted: boolean
label: any
labelAngle: number
labelBottomMargin: number
labelExtent: number
labelFormat: string
labelFormatSpecifiers: any[]
labelHorizontalAlignment: HorizontalAlignment
labelLeftMargin: number
labelLocation: AxisLabelsLocation
labelMaximumExtent: number
labelMaximumExtentPercentage: number
labelRightMargin: number
labelShowFirstLabel: boolean
labelTextColor: string
labelTextStyle: string
labelTopMargin: number
labelVerticalAlignment: VerticalAlignment
labelVisibility: Visibility
majorStroke: string
majorStrokeDashArray: number[]
majorStrokeThickness: number
minorStroke: string
minorStrokeDashArray: number[]
minorStrokeThickness: number
name: string
shouldAutoTruncateAnnotations: boolean
shouldAvoidAnnotationCollisions: boolean
shouldKeepAnnotationsInView: boolean
strip: string
stroke: string
strokeDashArray: number[]
strokeThickness: number
tickLength: number
tickStroke: string
tickStrokeDashArray: number[]
tickStrokeThickness: number
title: string
titleAngle: number
titleBottomMargin: number
titleExtent: number
titleHorizontalAlignment: HorizontalAlignment
titleLeftMargin: number
titleLocation: AxisLabelsLocation
titleMaximumExtent: number
titleMaximumExtentPercentage: number
titlePosition: AxisTitlePosition
titleRightMargin: number
titleShowFirstLabel: boolean
titleTextColor: string
titleTextStyle: string
titleTopMargin: number
titleVerticalAlignment: VerticalAlignment
titleVisibility: Visibility
useEnhancedIntervalManagement: boolean
usePerLabelHeightMeasurement: boolean
get axisInternal(): Axis

Returns Axis

get i(): Axis

Returns Axis

Gets if the current axis is of angular axis type

get isAngular(): boolean

Returns boolean

Gets or sets if the current axis is of category axis type

get isCategory(): boolean

Returns boolean

Gets if the current axis is of category date time axis type

get isCategoryDateTime(): boolean

Returns boolean

Gets if the current axis is a continuous rather than a discrete scale

get isContinuous(): boolean

Returns boolean

Gets or sets if the current axis is of date time axis type

get isDateTime(): boolean

Returns boolean

Gets if the current axis is a horizontal axis, e.g. not vertical axis, not radial axis, and not angular axis.

get isHorizontal(): boolean

Returns boolean

Gets or sets if the current axis is of numeric axis type

Gets or sets if the current axis is of numeric axis type
get isNumeric(): boolean

Returns boolean

Gets or sets if the current axis is of ordinal axis type

get isOrdinal(): boolean

Returns boolean

Gets or sets if the axis is a piecewise scaling function.

get isPiecewise(): boolean

Returns boolean

Gets whether this is primary axis created by an user

get isPrimaryAxis(): boolean

Returns boolean

Gets or sets if the current axis is of radial axis type

get isRadial(): boolean

Returns boolean

Gets or sets if the current axis is sorting data items

get isSorting(): boolean

Returns boolean

Gets if the current axis is a vertical axis.

get isVertical(): boolean

Returns boolean

Occurs when the axis range changes.

get rangeChanged(): EventEmitter<object>

Returns EventEmitter<object>

This event is raised every time a render has been requested from a series.

get renderRequested(): EventEmitter<object>

Returns EventEmitter<object>

bindAxes(axes: IgxAxisComponent[]): void

Parameters

Returns void

ensureLabelSettings(): void

Returns void

ensureTitleSettings(): void

Returns void

findByName(name: string): any

Parameters

  • name: string

Returns any

getFullRange(): number[]

Returns number[]

getItemValue(item: any, memberPathName: string): any

Parameters

  • item: any
  • memberPathName: string

Returns any

Gets the value of a requested member path from the series.

getMemberPathValue(memberPathName: string): string

Parameters

  • memberPathName: string
    • The property name of a valid member path for the series

Returns string

Gets the label for a data item.

getValueLabel(value: number): string

Parameters

  • value: number
    • The unscaled value to get a label for.

Returns string

ngOnInit(): void

Returns void

provideData(data: any): void

Parameters

  • data: any

Returns void

Renders the axis with no animation.

renderAxis(): void

Returns void

If using enhanced interval management and precise interval fitting, this will reset the cached maximum label width, and recalculate using the current labels.

resetCachedEnhancedInterval(): void

Returns void

Scales a value from axis space into screen space.

scaleValue(unscaledValue: number): number

Parameters

  • unscaledValue: number
    • The unscaled axis value to scale.

Returns number

_createFromInternal(internal: any): IgxAxisComponent

Parameters

  • internal: any

Returns IgxAxisComponent