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, true, never>
ɵfac: ɵɵFactoryDeclaration<IgxAxisComponent, never>

Gets or sets the ActualMajorStroke property.

The ActualMajorStroke property is used for ActualMajorStroke of the axis.

get actualMajorStroke(): string

Returns string

set actualMajorStroke(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the ActualMinorStroke property.

The ActualMinorStroke property is used for ActualMinorStroke of the axis.

get actualMinorStroke(): string

Returns string

set actualMinorStroke(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the effective stroke used for the axis.

get actualStroke(): string

Returns string

set actualStroke(v: string): void

Parameters

  • v: string

Returns void

Gets the current annotations for the axis.

get annotations(): IgxAxisAnnotationCollection

Returns IgxAxisAnnotationCollection

set annotations(v: IgxAxisAnnotationCollection): void

Parameters

Returns void

get axisInternal(): Axis

Returns Axis

Gets or sets the coercion methods to use when loading data from data sources. Should be specified before setting any member paths, if being used. Setting it later will not cause data to be re-imported into the chart.

The coercionMethods methods is to use when loading data from data sources. Should be specified before setting any member paths, if being used. Setting it later will not cause data to be reimported into the chart.

get coercionMethods(): any

Returns any

set coercionMethods(v: any): void

Parameters

  • v: any

Returns void

Gets or sets crossing axis for the companion axis.

get companionAxisCrossingAxis(): IgxAxisComponent

Returns IgxAxisComponent

set companionAxisCrossingAxis(v: IgxAxisComponent): void

Parameters

Returns void

Gets or sets crossing value for the companion axis.

get companionAxisCrossingValue(): number

Returns number

set companionAxisCrossingValue(v: number): void

Parameters

  • v: number

Returns void

Gets or sets whether or not the companion axis is enabled for this axis.

get companionAxisEnabled(): boolean

Returns boolean

set companionAxisEnabled(v: boolean): void

Parameters

  • v: boolean

Returns void

Gets or sets whether or not the companion axis is inverted.

get companionAxisIsInverted(): FeatureState

Returns FeatureState

set companionAxisIsInverted(v: FeatureState): void

Parameters

  • v: FeatureState

Returns void

Gets or sets label angle on the companion axis.

get companionAxisLabelAngle(): number

Returns number

set companionAxisLabelAngle(v: number): void

Parameters

  • v: number

Returns void

Gets or sets color of labels on the companion axis.

get companionAxisLabelColor(): string

Returns string

set companionAxisLabelColor(v: string): void

Parameters

  • v: string

Returns void

Gets or sets extent of labels on the companion axis.

get companionAxisLabelExtent(): number

Returns number

set companionAxisLabelExtent(v: number): void

Parameters

  • v: number

Returns void

companionAxisLabelHorizontalAlignment

Section titled "companionAxisLabelHorizontalAlignment"

Gets or sets horizontal alignment of labels on the companion axis.

get companionAxisLabelHorizontalAlignment(): HorizontalAlignment

Returns HorizontalAlignment

set companionAxisLabelHorizontalAlignment(v: HorizontalAlignment): void

Parameters

  • v: HorizontalAlignment

Returns void

Gets or sets location of labels on the companion axis.

get companionAxisLabelLocation(): AxisLabelsLocation

Returns AxisLabelsLocation

set companionAxisLabelLocation(v: AxisLabelsLocation): void

Parameters

Returns void

Gets or sets whether or not the companion axis has opposite location of this axis.

get companionAxisLabelOpposite(): boolean

Returns boolean

set companionAxisLabelOpposite(v: boolean): void

Parameters

  • v: boolean

Returns void

companionAxisLabelVerticalAlignment

Section titled "companionAxisLabelVerticalAlignment"

Gets or sets vertical alignment of the companion axis.

get companionAxisLabelVerticalAlignment(): VerticalAlignment

Returns VerticalAlignment

set companionAxisLabelVerticalAlignment(v: VerticalAlignment): void

Parameters

  • v: VerticalAlignment

Returns void

Gets or sets whether or not the companion axis has visible labels.

get companionAxisLabelVisible(): FeatureState

Returns FeatureState

set companionAxisLabelVisible(v: FeatureState): void

Parameters

  • v: FeatureState

Returns void

Gets or sets stroke of major gridlines on the companion axis.

get companionAxisMajorStroke(): string

Returns string

set companionAxisMajorStroke(v: string): void

Parameters

  • v: string

Returns void

Gets or sets thickness of major gridlines on the companion axis.

get companionAxisMajorStrokeThickness(): number

Returns number

set companionAxisMajorStrokeThickness(v: number): void

Parameters

  • v: number

Returns void

Gets or sets label angle on the companion axis.

get companionAxisMinExtent(): number

Returns number

set companionAxisMinExtent(v: number): void

Parameters

  • v: number

Returns void

Gets or sets stroke of minior gridlines on the companion axis.

get companionAxisMinorStroke(): string

Returns string

set companionAxisMinorStroke(v: string): void

Parameters

  • v: string

Returns void

Gets or sets thickness of minior gridlines on the companion axis.

get companionAxisMinorStrokeThickness(): number

Returns number

set companionAxisMinorStrokeThickness(v: number): void

Parameters

  • v: number

Returns void

companionAxisShouldAutoTruncateAnnotations

Section titled "companionAxisShouldAutoTruncateAnnotations"

Gets or sets whether or not the companion axis should auto truncate annotations.

get companionAxisShouldAutoTruncateAnnotations(): FeatureState

Returns FeatureState

set companionAxisShouldAutoTruncateAnnotations(v: FeatureState): void

Parameters

  • v: FeatureState

Returns void

companionAxisShouldAvoidAnnotationCollisions

Section titled "companionAxisShouldAvoidAnnotationCollisions"

Gets or sets whether or not the companion axis should avoid annotation collisions.

get companionAxisShouldAvoidAnnotationCollisions(): FeatureState

Returns FeatureState

set companionAxisShouldAvoidAnnotationCollisions(v: FeatureState): void

Parameters

  • v: FeatureState

Returns void

companionAxisShouldKeepAnnotationsInView

Section titled "companionAxisShouldKeepAnnotationsInView"

Gets or sets whether or not the companion axis should keep annotations in view.

get companionAxisShouldKeepAnnotationsInView(): FeatureState

Returns FeatureState

set companionAxisShouldKeepAnnotationsInView(v: FeatureState): void

Parameters

  • v: FeatureState

Returns void

Gets or sets color of strips on the companion axis.

get companionAxisStrip(): string

Returns string

set companionAxisStrip(v: string): void

Parameters

  • v: string

Returns void

Gets or sets color of line stroke on the companion axis.

get companionAxisStroke(): string

Returns string

set companionAxisStroke(v: string): void

Parameters

  • v: string

Returns void

Gets or sets label angle on the companion axis.

get companionAxisStrokeThickness(): number

Returns number

set companionAxisStrokeThickness(v: number): void

Parameters

  • v: number

Returns void

companionAxisSyncronizedWithPrimaryAxis

Section titled "companionAxisSyncronizedWithPrimaryAxis"

Gets or sets whether or not the companion axis is syncronized with properties of primary axis unless CompanionAxis* properties are set In other words, companion axis' LabelExtent will syncronize with primary axis' LabelExtent unless CompanionAxisLabelExtent is set

get companionAxisSyncronizedWithPrimaryAxis(): boolean

Returns boolean

set companionAxisSyncronizedWithPrimaryAxis(v: boolean): void

Parameters

  • v: boolean

Returns void

Gets or sets length of ticks on the companion axis.

get companionAxisTickLength(): number

Returns number

set companionAxisTickLength(v: number): void

Parameters

  • v: number

Returns void

Gets or sets color of ticks on the companion axis.

get companionAxisTickStroke(): string

Returns string

set companionAxisTickStroke(v: string): void

Parameters

  • v: string

Returns void

Gets or sets label angle on the companion axis.

get companionAxisTickStrokeThickness(): number

Returns number

set companionAxisTickStrokeThickness(v: number): void

Parameters

  • v: number

Returns void

Gets or sets title on the companion axis.

get companionAxisTitle(): string

Returns string

set companionAxisTitle(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the CrossingAxis property.

The CrossingAxis property is used for CrossingAxis .

<igx-data-chart
    [dataSource]="data" >
    <igx-category-x-axis
		label="label"
		#xAxis>
    </igx-category-x-axis>
    <igx-numeric-y-axis
		crossingAxis= "xAxis"
		crossingValue= 700
		#yAxis>
    </igx-numeric-y-axis>
</igx-data-chart>
get crossingAxis(): IgxAxisComponent

Returns IgxAxisComponent

set crossingAxis(v: IgxAxisComponent): void

Parameters

Returns void

Gets or sets the CrossingValue property.

The CrossingValue property is used for CrossingValue of the axis.

<igx-data-chart
    [dataSource]="data" >
    <igx-category-x-axis
		label="label"
		#xAxis>
    </igx-category-x-axis>
    <igx-numeric-y-axis
		crossingAxis= "xAxis"
		crossingValue= 700
		#yAxis>
    </igx-numeric-y-axis>
</igx-data-chart>
get crossingValue(): any

Returns any

set crossingValue(v: any): void

Parameters

  • v: any

Returns void

Gets or sets the minimum desired characters to be displayed for horizontal axes when using advanced label heuristics. -1 will attempt to adjust the interval to precisely fit the horizontal labels.

The EnhancedIntervalMinimumCharacters property is used to set the mininum desired characters to be displayed for horizontal axes when using advanced label heuristics.

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

</igx-data-chart>
get enhancedIntervalMinimumCharacters(): number

Returns number

set enhancedIntervalMinimumCharacters(v: number): void

Parameters

  • v: number

Returns void

enhancedIntervalPreferMoreCategoryLabels

Section titled "enhancedIntervalPreferMoreCategoryLabels"

Gets or sets whether the enhanced interval management should prefer to show all the labels if possible without collisions for supported types of category axes. This is for use with EnhancedIntervalMinimumCharacters = -1 and axes that have an integral interval.

get enhancedIntervalPreferMoreCategoryLabels(): boolean

Returns boolean

set enhancedIntervalPreferMoreCategoryLabels(v: boolean): void

Parameters

  • v: boolean

Returns void

Gets or sets whether the series should expect that properties in its items source may be functions that need to be evaluated to yield their value. This defaults to false, as there will be a subtle performance impact to using this feature. This value must be set before assigning an item's source to take effect.

get expectFunctions(): boolean

Returns boolean

set expectFunctions(v: boolean): void

Parameters

  • v: boolean

Returns void

Sets or gets a function which takes an object that produces a formatted label for displaying in the chart.

The FormatLabel function takes an object that produces a formatted label for displaying in the chart.

<igx-data-chart [dataSource]="data" >
    <igx-category-x-axis
		name="xAxis"
		FormatLabel="xAxis_FormatLabel" />
</igx-data-chart>
get formatLabel(): object

Returns object

set formatLabel(v: object): void

Parameters

  • v: object

Returns void

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 whether this is companion axis automatically created for a primary axis

get isCompanionAxis(): boolean

Returns boolean

set isCompanionAxis(v: boolean): void

Parameters

  • v: boolean

Returns void

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 or sets the IsDisabled property. If true, the axis will not be rendered.

The IsDisabled property is used to decide if the axis will not be rendered.

get isDisabled(): boolean

Returns boolean

set isDisabled(v: boolean): void

Parameters

  • v: boolean

Returns void

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 the IsInverted property.

Gets or sets the IsInverted property.

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

</igx-data-chart>
get isInverted(): boolean

Returns boolean

set isInverted(v: boolean): void

Parameters

  • v: boolean

Returns void

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

Gets or sets the axis label format string.

The Label property is used for label mapping of the axis labels.

get label(): any

Returns any

set label(v: any): void

Parameters

  • v: any

Returns void

Gets or sets the angle of the {0}.

The Angle property is used to set the angle of the axis.

get labelAngle(): number

Returns number

set labelAngle(v: number): void

Parameters

  • v: number

Returns void

Margin applied below the {0}.

The labelBottomMargin is used to set the bottom margin of the labels.

get labelBottomMargin(): number

Returns number

set labelBottomMargin(v: number): void

Parameters

  • v: number

Returns void

Distance between the axis and the edge of the control.

The Extent property is used for the extent.

get labelExtent(): number

Returns number

set labelExtent(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the label format string to use for the label.

get labelFormat(): string

Returns string

set labelFormat(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the format specifiers to use with the LabelFormat string.

get labelFormatSpecifiers(): any[]

Returns any[]

set labelFormatSpecifiers(v: any[]): void

Parameters

  • v: any[]

Returns void

Gets or sets the horizontal alignment of the {0}.

The HorizontalAlignment property is used for the horizontal alignment.

get labelHorizontalAlignment(): HorizontalAlignment

Returns HorizontalAlignment

set labelHorizontalAlignment(v: HorizontalAlignment): void

Parameters

  • v: HorizontalAlignment

Returns void

Margin applied to the left of the {0}.

The labelLeftMargin property is used for the left margin of the labels.

get labelLeftMargin(): number

Returns number

set labelLeftMargin(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the location of the {0}.

The Location property is used for the location.

get labelLocation(): AxisLabelsLocation

Returns AxisLabelsLocation

set labelLocation(v: AxisLabelsLocation): void

Parameters

Returns void

Maximum distance between the axis and the edge of the control.

get labelMaximumExtent(): number

Returns number

set labelMaximumExtent(v: number): void

Parameters

  • v: number

Returns void

Maximum distance between the axis and the edge of the control, relative to Chart size.

get labelMaximumExtentPercentage(): number

Returns number

set labelMaximumExtentPercentage(v: number): void

Parameters

  • v: number

Returns void

Margin applied to the right of the {0}.

The labelRightMargin property is used for the right margin of the labels.

get labelRightMargin(): number

Returns number

set labelRightMargin(v: number): void

Parameters

  • v: number

Returns void

Gets or sets whether the first label is displayed when the zoom level is set to 1.

The ShowFirstLabel is used to check whether the first label is displayed when the zoom level is set to 1.

get labelShowFirstLabel(): boolean

Returns boolean

set labelShowFirstLabel(v: boolean): void

Parameters

  • v: boolean

Returns void

The color of the {0}.

The labelTextColor property Overrides the color of the text used for the axis labels.

get labelTextColor(): string

Returns string

set labelTextColor(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the text style to use for axis labels.

The labelTextStyle property Overrides the style of the text used for the axis labels.

get labelTextStyle(): string

Returns string

set labelTextStyle(v: string): void

Parameters

  • v: string

Returns void

Margin applied above the {0}.

The labelTopMargin property is used for the top margin of the labels.

get labelTopMargin(): number

Returns number

set labelTopMargin(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the vertical alignment of the {0}.

The VerticalAlignment property is used for the vertical alignment of the axis.

get labelVerticalAlignment(): VerticalAlignment

Returns VerticalAlignment

set labelVerticalAlignment(v: VerticalAlignment): void

Parameters

  • v: VerticalAlignment

Returns void

Gets or sets the visibility of the {0}.

The Visibility property is used for the visibility of the axis.

get labelVisibility(): Visibility

Returns Visibility

set labelVisibility(v: Visibility): void

Parameters

  • v: Visibility

Returns void

Gets or sets the MajorStroke property. Null is treated as auto. Major lines will be displayed or not based on the axis type and series used with it.

Gets or sets the MajorStroke using this property.

<igx-data-chart
    [dataSource]="data" >
    <igx-category-x-axis
		label="label"
		#xAxis>
    </igx-category-x-axis>
    <igx-numeric-y-axis
	   majorStroke="black"
		#yAxis>
    </igx-numeric-y-axis>
</igx-data-chart>
get majorStroke(): string

Returns string

set majorStroke(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the MajorStrokeDashArray property.

get majorStrokeDashArray(): number[]

Returns number[]

set majorStrokeDashArray(v: number[]): void

Parameters

  • v: number[]

Returns void

Gets or sets the MajorStrokeThickness property.

Gets or sets the MajorStrokeThickness using this property.

<igx-data-chart
    [dataSource]="data" >
    <igx-category-x-axis
		label="label"
		#xAxis>
    </igx-category-x-axis>
    <igx-numeric-y-axis
	  majorStrokeThickness="1"
		#yAxis>
    </igx-numeric-y-axis>
</igx-data-chart>
get majorStrokeThickness(): number

Returns number

set majorStrokeThickness(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the MinorStroke property.

Gets or sets the minorStroke thickness using MinorStrokeThickness property.

<igx-data-chart
    [dataSource]="data" >
    <igx-category-x-axis
		label="label"
		#xAxis>
    </igx-category-x-axis>
    <igx-numeric-y-axis
	 minorStrokeThickness="1"
		#yAxis>
    </igx-numeric-y-axis>
</igx-data-chart>
get minorStroke(): string

Returns string

set minorStroke(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the MinorStrokeDashArray property.

get minorStrokeDashArray(): number[]

Returns number[]

set minorStrokeDashArray(v: number[]): void

Parameters

  • v: number[]

Returns void

Gets or sets the MinorStrokeThickness property.

get minorStrokeThickness(): number

Returns number

set minorStrokeThickness(v: number): void

Parameters

  • v: number

Returns void

get name(): string

Returns string

set name(value: string): void

Parameters

  • value: string

Returns void

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>

Gets or sets whether annotations on this axis will automatically truncate themselves to avoid colliding with each other. This only works if the ShouldAvoidAnnotationCollisions property is enabled.

get shouldAutoTruncateAnnotations(): boolean

Returns boolean

set shouldAutoTruncateAnnotations(v: boolean): void

Parameters

  • v: boolean

Returns void

Gets or sets whether annotations should be shifted to avoid collision, even if this would result in them appearing where they shouldn't be along the scale.

get shouldAvoidAnnotationCollisions(): boolean

Returns boolean

set shouldAvoidAnnotationCollisions(v: boolean): void

Parameters

  • v: boolean

Returns void

ets or sets whether annotations should be kept in view, even if they aren't positioned where they should appear on the scale.

get shouldKeepAnnotationsInView(): boolean

Returns boolean

set shouldKeepAnnotationsInView(v: boolean): void

Parameters

  • v: boolean

Returns void

Gets or sets the Strip property.

Use Strip property to set the strip of the chart.

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

</igx-data-chart>
get strip(): string

Returns string

set strip(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the Stroke property. Null is treated as auto. The axis stroke will be displayed or not based on the axis type and series used with it.

Use Stroke property to set the stroke of the chart.

<igx-data-chart
    [dataSource]="data" >
    <igx-category-x-axis
		label="label"
		stroke="blue"
		#xAxis>
    </igx-category-x-axis>
    <igx-numeric-y-axis
		#yAxis>
    </igx-numeric-y-axis>
</igx-data-chart>
get stroke(): string

Returns string

set stroke(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the StrokeDashArray property.

get strokeDashArray(): number[]

Returns number[]

set strokeDashArray(v: number[]): void

Parameters

  • v: number[]

Returns void

Gets or sets the StrokeThickness property.

Use StrokeThickness property for the thickness of the stroke.

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

</igx-data-chart>
get strokeThickness(): number

Returns number

set strokeThickness(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the TickLength property.

Use TickLength property for The length of the tickmarks to display for this axis.

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

</igx-data-chart>
get tickLength(): number

Returns number

set tickLength(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the TickStroke property.

Use TickStroke property for the color of the tickmarks.

<igx-data-chart
    [dataSource]="data" >
    <igx-category-x-axis
		label="label"
		tickStroke="black"
		#xAxis>
    </igx-category-x-axis>
    <igx-numeric-y-axis
		#yAxis>
    </igx-numeric-y-axis>
</igx-data-chart>
get tickStroke(): string

Returns string

set tickStroke(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the TickStrokeDashArray property.

get tickStrokeDashArray(): number[]

Returns number[]

set tickStrokeDashArray(v: number[]): void

Parameters

  • v: number[]

Returns void

Gets or sets the TickStrokeThickness property.

Use TickStrokeThickness property for thickness of the stroke tickmarks.

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

</igx-data-chart>
get tickStrokeThickness(): number

Returns number

set tickStrokeThickness(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the Title property.

Use Title property to display the title of the component.

<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>
get title(): string

Returns string

set title(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the angle of the {0}.

The Angle property is used to set the angle of the axis.

get titleAngle(): number

Returns number

set titleAngle(v: number): void

Parameters

  • v: number

Returns void

Margin applied below the {0}.

The labelBottomMargin is used to set the bottom margin of the labels.

get titleBottomMargin(): number

Returns number

set titleBottomMargin(v: number): void

Parameters

  • v: number

Returns void

Distance between the axis and the edge of the control.

The Extent property is used for the extent.

get titleExtent(): number

Returns number

set titleExtent(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the horizontal alignment of the {0}.

The HorizontalAlignment property is used for the horizontal alignment.

get titleHorizontalAlignment(): HorizontalAlignment

Returns HorizontalAlignment

set titleHorizontalAlignment(v: HorizontalAlignment): void

Parameters

  • v: HorizontalAlignment

Returns void

Margin applied to the left of the {0}.

The labelLeftMargin property is used for the left margin of the labels.

get titleLeftMargin(): number

Returns number

set titleLeftMargin(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the location of the {0}.

The Location property is used for the location.

get titleLocation(): AxisLabelsLocation

Returns AxisLabelsLocation

set titleLocation(v: AxisLabelsLocation): void

Parameters

Returns void

Maximum distance between the axis and the edge of the control.

get titleMaximumExtent(): number

Returns number

set titleMaximumExtent(v: number): void

Parameters

  • v: number

Returns void

Maximum distance between the axis and the edge of the control, relative to Chart size.

get titleMaximumExtentPercentage(): number

Returns number

set titleMaximumExtentPercentage(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the title position relative to the axis labels.

get titlePosition(): AxisTitlePosition

Returns AxisTitlePosition

set titlePosition(v: AxisTitlePosition): void

Parameters

Returns void

Margin applied to the right of the {0}.

The labelRightMargin property is used for the right margin of the labels.

get titleRightMargin(): number

Returns number

set titleRightMargin(v: number): void

Parameters

  • v: number

Returns void

Gets or sets whether the first label is displayed when the zoom level is set to 1.

The ShowFirstLabel is used to check whether the first label is displayed when the zoom level is set to 1.

get titleShowFirstLabel(): boolean

Returns boolean

set titleShowFirstLabel(v: boolean): void

Parameters

  • v: boolean

Returns void

The color of the {0}.

The labelTextColor property Overrides the color of the text used for the axis labels.

get titleTextColor(): string

Returns string

set titleTextColor(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the text style to use for axis labels.

The labelTextStyle property Overrides the style of the text used for the axis labels.

get titleTextStyle(): string

Returns string

set titleTextStyle(v: string): void

Parameters

  • v: string

Returns void

Margin applied above the {0}.

The labelTopMargin property is used for the top margin of the labels.

get titleTopMargin(): number

Returns number

set titleTopMargin(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the vertical alignment of the {0}.

The VerticalAlignment property is used for the vertical alignment of the axis.

get titleVerticalAlignment(): VerticalAlignment

Returns VerticalAlignment

set titleVerticalAlignment(v: VerticalAlignment): void

Parameters

  • v: VerticalAlignment

Returns void

Gets or sets the visibility of the {0}.

The Visibility property is used for the visibility of the axis.

get titleVisibility(): Visibility

Returns Visibility

set titleVisibility(v: Visibility): void

Parameters

  • v: Visibility

Returns void

Gets or sets whether to use more advanced heuristics when determining the initial number of labels to render, before resolving collisions, etc.

Use UseEnhancedIntervalManagement property to gets/sets whether to use more advanced heuristics when determining the initial number of labels to render, before resolving collisions, etc.

get useEnhancedIntervalManagement(): boolean

Returns boolean

set useEnhancedIntervalManagement(v: boolean): void

Parameters

  • v: boolean

Returns void

Gets or sets whether to use label height measurement when determining the initial number of labels to render, before resolving collisions, etc.

get usePerLabelHeightMeasurement(): boolean

Returns boolean

set usePerLabelHeightMeasurement(v: boolean): void

Parameters

  • v: boolean

Returns void

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