Static
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ngStatic
ɵcmpStatic
ɵfacGets or sets the ActualMajorStroke property.
The ActualMajorStroke
property is used for ActualMajorStroke of the axis.
Gets the coerced maximum value.
Use ActualMaximumValue
to get the coerced maximum value
Gets the coerced minimum value.
Use ActualMinimumValue
to get the coerced maximum value.
Gets or sets the ActualMinorStroke property.
The ActualMinorStroke
property is used for ActualMinorStroke of the axis.
Gets or sets the effective stroke used for the axis.
Gets the current annotations for the axis.
TimeAxisBreaks to apply to this axis, representing spans of time to omit, such as weekends.
The Breaks
to apply to this axis, representing spans of time to omit, such as weekends.
<igx-data-chart
[dataSource]="data">
<igx-time-x-axis
dateTimeMemberPath="date"
#xAxis>
</igx-time-x-axis>
</igx-data-chart>
let xAxis = new IgxTimeXAxisComponent();
xAxis.dataTimeMemberPath="date";
this.chart.axes.add(xAxis);
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.
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>
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>
Gets or sets the DateTime mapping property for the axis.
Use DateTimeMemberPath
property for DateTime mapping with the axis.
<igx-data-chart
[dataSource]="data">
<igx-time-x-axis
dateTimeMemberPath="date"
#xAxis>
</igx-time-x-axis>
</igx-data-chart>
let xAxis = new IgxTimeXAxisComponent();
xAxis.dataTimeMemberPath="date";
this.chart.axes.add(xAxis);
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>
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.
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.
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>
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>
Gets or sets the amount of space between adjacent categories for the current axis object. The gap is silently clamped to the range [0, 1] when used.
Use the Gap
property to configure the spacing between items on a category axis with item spacing.
A Gap
of 0 allocates no space between items. A Gap
of 1 allocates a space between items equal to the width of one item.
To set the item spacing to 75% the width of one item, set the Gap
to 0.75, as in this code:
<igx-data-chart
[dataSource]="data">
<igx-category-x-axis
label="label"
gap="0.75"
#xAxis>
</igx-category-x-axis>
<igx-numeric-y-axis
#yAxis>
</igx-numeric-y-axis>
<igx-column-series
[xAxis]="xAxis"
[yAxis]="yAxis"
valueMemberPath="value">
</igx-column-series>
</igx-data-chart>
A list of axis label intervals to apply, which are selected according to the visible axis range. The interval selected will be the one with the largest range smaller than the visible range of the axis.
Gets if the current axis is of angular axis type
Checks if the axis is of category axis type
Gets if the current axis is of category date time axis type
Gets if the current axis is a continuous rather than a discrete scale
Gets or sets whether the data assigned to the date time axis should be considered pre-sorted by date/time.
Use IsDataPreSorted
property to decide if the data assigned to the date time axis should be considered pre-sorted by date/time.
Checks if the axis is of date time axis type
Use IsDateTime
property to Checks if the axis is of date time axis type.
const isDT = this.timeXAxis.isDateTime;
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.
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>
Gets or sets if the current axis is of numeric axis type
Gets or sets if the current axis is of numeric axis type
Gets or sets if the current axis is of ordinal axis type
Gets or sets if the axis is a piecewise scaling function.
Gets or sets if the current axis is of radial axis type
Checks if axis requires sorting of items
Use IsSorting
property to Checks if axis requires sorting of items.
const isDT = this.timeXAxis.isDateTime;
Gets if the current axis is a vertical axis.
Gets the number of items in the current category axis items source.
Gets or sets the axis label format string.
The Label
property is used for label mapping of the axis labels.
Gets or sets the angle of the {0}.
The Angle
property is used to set the angle of the axis.
Margin applied below the {0}.
The labelBottomMargin
is used to set the bottom margin of the labels.
Distance between the axis and the edge of the control.
The Extent
property is used for the extent.
Gets or sets the label format string to use for the label.
Gets or sets the format specifiers to use with the LabelFormat string.
A list of axis label formats to apply, which are selected according to the visible axis range. The label format selected will be the one with the largest range smaller than the visible range of the axis.
Gets or sets the horizontal alignment of the {0}.
The HorizontalAlignment
property is used for the horizontal alignment.
Margin applied to the left of the {0}.
The labelLeftMargin
property is used for the left margin of the labels.
Gets or sets the location of the {0}.
The Location
property is used for the location.
Margin applied to the right of the {0}.
The labelRightMargin
property is used for the right margin of the labels.
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.
The color of the {0}.
The labelTextColor
property Overrides the color of the text used for the axis labels.
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.
Margin applied above the {0}.
The labelTopMargin
property is used for the top margin of the labels.
Gets or sets the vertical alignment of the {0}.
The VerticalAlignment
property is used for the vertical alignment of the axis.
Gets or sets the visibility of the {0}.
The Visibility
property is used for the visibility of the axis.
Gets or sets the labelling mode to use when the automatic label formats are applied.
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>
Gets or sets the MajorStrokeDashArray property.
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>
Gets or sets the maximum gap value to allow. This defaults to 1.0.
Gets or sets the axis MaximumValue.
Use MaximumValue
property for axis maximum value.
this.timeXAxis.maximumValue="2019-12-26";
Gets or sets the minimum amount of pixels to use for the gap between categories, if possible.
Gets or sets the axis MinimumValue.
Use MinimumValue
property for axis minimum value.
this.timeXAxis.maximumValue="2019-12-26";
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>
Gets or sets the MinorStrokeDashArray property.
Gets or sets the MinorStrokeThickness property.
Gets or sets the amount of overlap between adjacent categories for the current axis object. The overlap is silently clamped to the range [-1, 1] when used.
Use the Overlap
property to configure the spacing between items on a category axis with item spacing and more than one series.
An Overlap
of 0 places grouped items adjacent to each other. An Overlap
of 1 places grouped items in the same axis space, completely overlapping. An Overlap
of -1 places a space between grouped items equal to the width of one item.
To place grouped items with 75% overlap, set the Overlap
to 0.75, as in this code:
<igx-data-chart
[dataSource]="data">
<igx-category-x-axis
label="label"
overlap="0.75"
#xAxis>
</igx-category-x-axis>
<igx-numeric-y-axis
#yAxis>
</igx-numeric-y-axis>
<igx-column-series
[xAxis]="xAxis"
[yAxis]="yAxis"
valueMemberPath="value">
</igx-column-series>
<igx-column-series
[xAxis]="xAxis"
[yAxis]="yAxis"
valueMemberPath="value">
</igx-column-series>
</igx-data-chart>
Occurs when the axis range changes.
This event is raised every time a render has been requested from a series.
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.
ets or sets whether annotations should be kept in view, even if they aren't positioned where they should appear on the scale.
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>
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>
Gets or sets the StrokeDashArray property.
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>
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>
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>
Gets or sets the TickStrokeDashArray property.
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>
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>
Gets or sets the angle of the {0}.
The Angle
property is used to set the angle of the axis.
Margin applied below the {0}.
The labelBottomMargin
is used to set the bottom margin of the labels.
Distance between the axis and the edge of the control.
The Extent
property is used for the extent.
Gets or sets the horizontal alignment of the {0}.
The HorizontalAlignment
property is used for the horizontal alignment.
Margin applied to the left of the {0}.
The labelLeftMargin
property is used for the left margin of the labels.
Gets or sets the location of the {0}.
The Location
property is used for the location.
Gets or sets the title position relative to the axis labels.
Margin applied to the right of the {0}.
The labelRightMargin
property is used for the right margin of the labels.
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.
The color of the {0}.
The labelTextColor
property Overrides the color of the text used for the axis labels.
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.
Margin applied above the {0}.
The labelTopMargin
property is used for the top margin of the labels.
Gets or sets the vertical alignment of the {0}.
The VerticalAlignment
property is used for the vertical alignment of the axis.
Gets or sets the visibility of the {0}.
The Visibility
property is used for the visibility of the axis.
Gets or sets whether the category axis should use clustering display mode even if no series are present that would force clustering mode.
UseClusteringMode
applies grouping and spacing to a category axis equivalent to the grouping that occurs when grouping series, such as ColumnSeries, are used.
Try setting it on an axis displaying financial series to adjust the spacing on the left and right sides of the axis:
<igx-data-chart
[dataSource]="financialData">
<igx-category-x-axis
label="time"
useClusteringMode="true"
#xAxis>
</igx-category-x-axis>
<igx-numeric-y-axis
#yAxis>
</igx-numeric-y-axis>
<igx-column-series
[xAxis]="xAxis"
[yAxis]="yAxis"
valueMemberPath="value">
</igx-column-series>
<igx-financial-price-series
[xAxis]="xAxis"
[yAxis]="yAxis"
openMemberPath="open"
highMemberPath="high"
lowMemberPath="low"
closeMemberPath="close"
volumeMemberPath="volume">
</igx-financial-price-series>
</igx-data-chart>
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.
Gets or sets whether to use label height measurement when determining the initial number of labels to render, before resolving collisions, etc.
Static
_create
A horizontal axis that uses a DateTime scale.
The
TimeXAxis
is a horizontal axis that uses a DateTime scale.