UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

1,459 lines 242 kB
import { Component, EventEmitter, Output, Input } from '@angular/core'; import { HorizontalAlignment_$type } from "igniteui-angular-core"; import { UnknownValuePlotting_$type } from "igniteui-angular-core"; import { TrendLineType_$type } from "igniteui-angular-core"; import { IgxChartSeriesEventArgs } from './igx-chart-series-event-args'; import { arrayFindByName, brushToString, stringToBrush, toBrushCollection, fromBrushCollection, fromRect, toRect, ensureBool, ensureEnum, toSpinal, initializePropertiesFromCss, NamePatcher } from "igniteui-angular-core"; import { MarkerType_$type } from "./MarkerType"; import { delegateCombine } from "igniteui-angular-core"; import { IgxDomainChartSeriesPointerEventArgs } from './igx-domain-chart-series-pointer-event-args'; import { MarkerTypeCollection as MarkerTypeCollection_internal } from './MarkerTypeCollection'; import { IgxMarkerTypeCollection } from './igx-marker-type-collection'; import { SyncableObservableCollection$1 } from "igniteui-angular-core"; import { ToolTipType_$type } from "./ToolTipType"; import { CrosshairsDisplayMode_$type } from "./CrosshairsDisplayMode"; import { IgxCalloutStyleUpdatingEventArgs } from "./igx-callout-style-updating-event-args"; import { ComputedPlotAreaMarginMode_$type } from './ComputedPlotAreaMarginMode'; import { SeriesHighlightingMode_$type } from './SeriesHighlightingMode'; import { SeriesHighlightingBehavior_$type } from './SeriesHighlightingBehavior'; import { LegendHighlightingMode_$type } from './LegendHighlightingMode'; import { SeriesOutlineMode_$type } from './SeriesOutlineMode'; import { MarkerOutlineMode_$type } from './MarkerOutlineMode'; import { MarkerFillMode_$type } from './MarkerFillMode'; import { MarkerAutomaticBehavior_$type } from './MarkerAutomaticBehavior'; import { LegendItemBadgeMode_$type } from "igniteui-angular-core"; import { LegendItemBadgeShape_$type } from "igniteui-angular-core"; import { DataAbbreviationMode_$type } from "igniteui-angular-core"; import { DataLegendValueMode_$type } from "igniteui-angular-core"; import { DataLegendHeaderDateMode_$type } from "igniteui-angular-core"; import { DataLegendHeaderTimeMode_$type } from "igniteui-angular-core"; import { DataLegendUnitsMode_$type } from "igniteui-angular-core"; import { DataLegendLabelMode_$type } from "igniteui-angular-core"; import { DataLegendSummaryType_$type } from "igniteui-angular-core"; import { Thickness } from "igniteui-angular-core"; import { FontInfo } from "igniteui-angular-core"; import { SeriesPlotAreaMarginHorizontalMode_$type } from './SeriesPlotAreaMarginHorizontalMode'; import { SeriesPlotAreaMarginVerticalMode_$type } from './SeriesPlotAreaMarginVerticalMode'; import { IgxCalloutPlacementPositionsCollection } from './igx-callout-placement-positions-collection'; import { CalloutPlacementPositions_$type } from './CalloutPlacementPositions'; import { SeriesViewerScrollbarMode_$type } from './SeriesViewerScrollbarMode'; import { SeriesViewerHorizontalScrollbarPosition_$type } from './SeriesViewerHorizontalScrollbarPosition'; import { SeriesViewerVerticalScrollbarPosition_$type } from './SeriesViewerVerticalScrollbarPosition'; import { IgxCalloutRenderStyleUpdatingEventArgs } from './igx-callout-render-style-updating-event-args'; import { CalloutPlacementPositionsCollection as CalloutPlacementPositionsCollection_internal } from './CalloutPlacementPositionsCollection'; import { DataToolTipLayerGroupingMode_$type } from "igniteui-angular-core"; import { DataTooltipGroupedPositionX_$type } from "igniteui-angular-core"; import { DataTooltipGroupedPositionY_$type } from "igniteui-angular-core"; import { IgxChartSummaryDescriptionCollection } from './igx-chart-summary-description-collection'; import { IgxChartSortDescriptionCollection } from './igx-chart-sort-description-collection'; import { IgxFilterExpressionCollection } from "igniteui-angular-core"; import { ValueModeCollection as ValueModeCollection_internal } from './ValueModeCollection'; import { IgxValueModeCollection } from './igx-value-mode-collection'; import { ValueLayerValueMode_$type } from './ValueLayerValueMode'; import { IgxFilterStringErrorsParsingEventArgs } from './igx-filter-string-errors-parsing-event-args'; import { SeriesHighlightedValuesDisplayMode_$type } from "igniteui-angular-core"; import { SeriesSelectionMode_$type } from './SeriesSelectionMode'; import { SeriesSelectionBehavior_$type } from './SeriesSelectionBehavior'; import { ChartSelectedItemCollection as ChartSelectedItemCollection_internal } from "./ChartSelectedItemCollection"; import { ChartSelection } from "./ChartSelection"; import { IgxSeriesViewerSelectedSeriesItemsChangedEventArgs } from "./igx-series-viewer-selected-series-items-changed-event-args"; import { IgxChartSelectedItemCollection } from "./igx-chart-selected-item-collection"; import { CalloutCollisionMode_$type } from "igniteui-angular-core"; import { Visibility_$type } from "igniteui-angular-core"; import { IgxDomainChartPlotAreaPointerEventArgs } from './igx-domain-chart-plot-area-pointer-event-args'; import { IgxTrendLineTypeCollection } from './igx-trend-line-type-collection'; import { TrendLineTypeCollection as TrendLineTypeCollection_internal } from './TrendLineTypeCollection'; import * as i0 from "@angular/core"; /** * Represents a base class for all domain charts that can plot scatter data and shapefiles * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * bottomMargin= 20> * </igx-category-chart> * ``` */ var IgxDomainChartComponent = /** @class */ /*@__PURE__*/ (function () { function IgxDomainChartComponent() { this._calloutsDataSource = null; this._selectedSeriesItems = null; this._focusedSeriesItems = null; this._markerTypes = null; this._trendLineTypes = null; this._calloutsAllowedPositions = null; this._valueLines = null; this.__p = null; this._hasUserValues = new Set(); this._stylingContainer = null; this._stylingParent = null; this._inStyling = false; this._seriesAdded = null; this._seriesRemoved = null; this._seriesPointerEnter = null; this._seriesPointerLeave = null; this._seriesPointerMove = null; this._seriesPointerDown = null; this._seriesPointerUp = null; this._seriesClick = null; this._plotAreaPointerEnter = null; this._plotAreaPointerLeave = null; this._plotAreaPointerMove = null; this._plotAreaPointerDown = null; this._plotAreaPointerUp = null; this._calloutStyleUpdating = null; this._calloutRenderStyleUpdating = null; this._selectedSeriesItemsChanged = null; this._focusedSeriesItemsChanged = null; this._filterStringErrorsParsing = null; this._zoneRunner = null; if (this._styling) { NamePatcher.ensureStylablePatched(Object.getPrototypeOf(this)); } this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); } IgxDomainChartComponent.prototype.createImplementation = function () { return null; }; IgxDomainChartComponent.prototype.ngOnInit = function () { }; Object.defineProperty(IgxDomainChartComponent.prototype, "i", { get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgxDomainChartComponent.prototype.onImplementationCreated = function () { }; Object.defineProperty(IgxDomainChartComponent.prototype, "tooltipTemplate", { /** * Sets or gets the template reference to use for tooltips for all the series. * * */ get: function () { return this.i.tooltipTemplate; }, set: function (v) { this.i.tooltipTemplate = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "tooltipTemplates", { /** * Sets or gets the template references to use for tooltips for all the series, in order. * * */ get: function () { var ret = []; if (this.i.tooltipTemplates) { for (var ii = 0; ii < this.i.tooltipTemplates.count; ii++) { ret.push(this.i.tooltipTemplates.item(ii)); } } return ret; }, set: function (v) { this.i.tooltipTemplates.clear(); if (v) { for (var ii = 0; ii < v.length; ii++) { this.i.tooltipTemplates.add(v[ii]); } } }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "legend", { get: function () { if (this.i.legend != null) return this.i.legend.externalObject; }, set: function (v) { if (v != undefined && v != null) this.i.legend = v.i; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "calloutsDataSource", { get: function () { return this._calloutsDataSource; }, set: function (value) { this._calloutsDataSource = value; this.bindCalloutsData(); }, enumerable: false, configurable: true }); IgxDomainChartComponent.prototype.bindCalloutsData = function () { if (this.i != null && this.i !== undefined) { this.i.calloutsItemsSource = this._calloutsDataSource; } }; Object.defineProperty(IgxDomainChartComponent.prototype, "pixelScalingRatio", { /** * Gets or sets the scaling value used to affect the pixel density of the control. * A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control * to appear blurry. */ get: function () { return this.i.j9; }, set: function (v) { this.i.j9 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "titleLeftMargin", { /** * Gets or sets the left margin of chart title * * Use `titleLeftMargin` property for the left margin of chart title. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * titleLeftMargin= 10> * </igx-category-chart> * ``` * * ```ts * this.chart.titleLeftMargin = 10; * ``` */ get: function () { return this.i.km; }, set: function (v) { this.i.km = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "titleRightMargin", { /** * Gets or sets the right margin of chart title * * Use `titleLeftMargin` property for the right margin of chart title. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * titleRightMargin= 10> * </igx-category-chart> * ``` * * ```ts * this.chart.titleRightMargin = 10; * ``` */ get: function () { return this.i.kn; }, set: function (v) { this.i.kn = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "titleTopMargin", { /** * Gets or sets the top margin of chart title * * Use `titleTopMargin` property for the top margin of chart title. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * title="Countries" * titleTopMargin=10 > * </igx-category-chart> * ``` * * ```ts * this.chart.titleTopMargin = 10; * ``` */ get: function () { return this.i.ko; }, set: function (v) { this.i.ko = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "titleBottomMargin", { /** * Gets or sets the bottom margin of chart title * * Use `titleBottomMargin` property for the bottom margin of chart title. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * titleBottomMargin= 10 > * </igx-category-chart> * ``` * * ```ts * this.chart.titleBottomMargin = 5; * ``` */ get: function () { return this.i.kl; }, set: function (v) { this.i.kl = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "subtitleLeftMargin", { /** * Gets or sets the left margin of chart subtitle * * Use `subtitleLeftMargin` property for the left margin of chart subtitle. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * subtitleLeftMargin= 20> * </igx-category-chart> * ``` * * ```ts * this.chart.subtitleLeftMargin = 20 ; * ``` */ get: function () { return this.i.kh; }, set: function (v) { this.i.kh = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "subtitleTopMargin", { /** * Gets or sets the top margin of chart subtitle * * Use `subtitleTopMargin` property for the top margin of chart subtitle. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * subtitle= "This is a subtitle" * subtitleTopMargin=10> * </igx-category-chart> * ``` * * ```ts * this.chart.subtitleTopMargin = 10; * ``` */ get: function () { return this.i.kj; }, set: function (v) { this.i.kj = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "subtitleRightMargin", { /** * Gets or sets the right margin of chart subtitle * * Use `subtitleRightMargin` property for the right margin of chart subtitle. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * subtitleRightMargin= 10> * </igx-category-chart> * ``` * * ```ts * this.chart.subtitleRightMargin = 20 ; * ``` */ get: function () { return this.i.ki; }, set: function (v) { this.i.ki = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "subtitleBottomMargin", { /** * Gets or sets the bottom margin of chart subtitle * * Use `subtitleBottomMargin` property for the bottom margin of chart subtitle. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * subtitleBottomMargin=10> * </igx-category-chart> * ``` * * ```ts * this.chart.subtitleBottomMargin = 10 ; * ``` */ get: function () { return this.i.kg; }, set: function (v) { this.i.kg = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "subtitleTextColor", { /** * Gets or sets color of chart subtitle * * Use `subtitleTextColor` property to color the subtitle. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * subtitle= "This is a subtitle" * subtitleTextColor= 'blue'> * </igx-category-chart> * ``` * * ```ts * this.chart.subtitleTextColor = "#ff0000" ; * ``` */ get: function () { return brushToString(this.i.zq); }, set: function (v) { this.i.zq = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "titleTextColor", { /** * Gets or sets color of chart title * * Use `titleTextColor` property to color the chart title * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * titleTextColor= "red"> * </igx-category-chart> * ``` * * ```ts * this.chart.titleTextColor="red" ; * ``` */ get: function () { return brushToString(this.i.zr); }, set: function (v) { this.i.zr = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "leftMargin", { /** * Gets or sets the left margin of the chart content. * * Use the 'leftMargin' property for the left margin of the chart content. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * leftMargin=20> * </igx-category-chart> * ``` * * ```ts * this.chart.leftMargin = 20; * ``` */ get: function () { return this.i.j6; }, set: function (v) { this.i.j6 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "topMargin", { /** * Gets or sets the top margin of the chart content. * * Use `topMargin` property for the margin of the chart content. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * topMargin= 20> * </igx-category-chart> * ``` * * ```ts * this.chart.topMargin=20; * ``` */ get: function () { return this.i.kp; }, set: function (v) { this.i.kp = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "rightMargin", { /** * Gets or sets the right margin of the chart content. * * Use `rightMargin` property for the right margin of the chart content. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * rightMargin=20> * </igx-category-chart> * ``` * * ```ts * this.chart.rightMargin = 20 ; * ``` */ get: function () { return this.i.kf; }, set: function (v) { this.i.kf = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "bottomMargin", { /** * Gets or sets the bottom margin around the chart content. * * Use the `bottomMargin` property for the bottom margin around the chart content. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * bottomMargin= 20> * </igx-category-chart> * ``` * * ```ts * this.chart.bottomMargin=20; * ``` */ get: function () { return this.i.js; }, set: function (v) { this.i.js = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "transitionDuration", { /** * Gets or sets the duration used for animating series plots when the data is changing * * Use the `TransitionDuration` property to animating between data values. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * transitionDuration="500"> * </igx-category-chart> * ``` * * ```ts * this.chart.transitionDuratio= 500; * ``` */ get: function () { return this.i.ly; }, set: function (v) { this.i.ly = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "transitionEasingFunction", { /** * Gets or sets the easing function used for animating series plots when the data is changing. * This can be set to one of the known values "linear" or "cubic," or it can be set to an easing function which takes a single numeric parameter and returns a number. * * The 'transitionInEasingFunction' property used for easing function for animating series plots when the chart is loading into view. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * transitionInEasingFunction= "cubic"> * </igx-category-chart> * ``` * * ```ts * this.chart.transitionInEasingFunction= this.cubicFunc; * * cubicFunc(time: number) : number * { * return time; * } * ``` */ get: function () { return this.i.eu; }, set: function (v) { this.i.eu = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "highlightingTransitionDuration", { /** * Gets or sets the duration used for animating highlighting changes */ get: function () { return this.i.lu; }, set: function (v) { this.i.lu = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "selectionTransitionDuration", { /** * Gets or sets the duration used for animating Selection changes */ get: function () { return this.i.lx; }, set: function (v) { this.i.lx = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "focusTransitionDuration", { /** * Gets or sets the duration used for animating Focus changes */ get: function () { return this.i.ls; }, set: function (v) { this.i.ls = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "subtitleTextStyle", { /** * Gets or sets CSS font property for the chart subtitle * * Use `subtitleTextStyle` property for the CSS font of the chart subtitle. * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * subtitle= "This is a subtitle" * subtitleTextStyle ="16pt Verdona"> * </igx-category-chart> * ``` * * ```ts * this.chart.subtitleTextStyle= "16pt Verdona"; * ``` */ get: function () { return this.i.tf; }, set: function (v) { this.i.tf = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "titleTextStyle", { /** * Gets or sets CSS font property for the chart title * * Use `titleTextStyle` property for the CSS font property of the chart title * * ```html * <igx-category-chart * yAxisMinimumValue="0" * [dataSource]="data" * titleTextStyle= "24pt Verdona"> * </igx-category-chart> * ``` * * ```ts * this.chart.xAxisTitleTextStyle = "24pt Verdona"; * ``` */ get: function () { return this.i.tq; }, set: function (v) { this.i.tq = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "isDetached", { get: function () { return this.i.isDetached; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipGroupingMode", { get: function () { return this.i.bz; }, set: function (v) { this.i.bz = ensureEnum(DataToolTipLayerGroupingMode_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipPositionOffsetX", { /** * Gets or sets the offset of the tooltip layer on the X axis. */ get: function () { return this.i.jx; }, set: function (v) { this.i.jx = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipPositionOffsetY", { /** * Gets or sets the offset of the tooltip layer on the Y axis. */ get: function () { return this.i.jy; }, set: function (v) { this.i.jy = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipDefaultPositionOffsetX", { /** * Gets or sets the offset of the tooltip layer on the X axis. */ get: function () { return this.i.jv; }, set: function (v) { this.i.jv = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipDefaultPositionOffsetY", { /** * Gets or sets the offset of the tooltip layer on the Y axis. */ get: function () { return this.i.jw; }, set: function (v) { this.i.jw = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipGroupedPositionModeX", { /** * Gets or sets the tooltip position mode on the X axis for grouped series. */ get: function () { return this.i.bv; }, set: function (v) { this.i.bv = ensureEnum(DataTooltipGroupedPositionX_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipGroupedPositionModeY", { /** * Gets or sets the tooltip position mode on the Y axis for grouped series. */ get: function () { return this.i.bx; }, set: function (v) { this.i.bx = ensureEnum(DataTooltipGroupedPositionY_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipShouldUpdateWhenSeriesDataChanges", { /** * Gets or sets whether the data legend should update when the series data is mutated. */ get: function () { return this.i.gx; }, set: function (v) { this.i.gx = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipIncludedSeries", { /** * Gets or sets indexes, titles, or names of series to include in displaying in the data tooltip, e.g. "0, 1" or "Series1 Title, Series2 Title" * The DataToolTipExcludedSeries property takes precedence over values of DataToolTipIncludedSeries property */ get: function () { return this.i.m; }, set: function (v) { if (v && !Array.isArray(v) && typeof (v) == "string") { var re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.m = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipExcludedSeries", { /** * Gets or sets indexes, titles, or names of series to exclude from displaying in the data tooltip, e.g. "0, 1" or "Series1 Title, Series2 Title" * The DataToolTipExcludedSeries property takes precedence over values of DataToolTipIncludedSeries property */ get: function () { return this.i.j; }, set: function (v) { if (v && !Array.isArray(v) && typeof (v) == "string") { var re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.j = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipIncludedColumns", { /** * Gets or sets names of data columns or their labels to include in displaying in the data legend, e.g. "High, Low" or "H, L" * The DataToolTipExcludedColumns property takes precedence over values of DataToolTipIncludedColumns property */ get: function () { return this.i.l; }, set: function (v) { if (v && !Array.isArray(v) && typeof (v) == "string") { var re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.l = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipExcludedColumns", { /** * Gets or sets names of data columns or their labels to exclude from displaying in the data legend, e.g. "High, Low" or "H, L" * The DataToolTipExcludedColumns property takes precedence over values of DataToolTipIncludedColumns property */ get: function () { return this.i.i; }, set: function (v) { if (v && !Array.isArray(v) && typeof (v) == "string") { var re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.i = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueFormatAbbreviation", { /** * Gets or sets mode for abbreviating large numbers displayed in the legend * This property is ignored when setting ValueFormatSpecifiers or ValueFormatString properties */ get: function () { return this.i.bd; }, set: function (v) { this.i.bd = ensureEnum(DataAbbreviationMode_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueFormatMaxFractions", { /** * Gets or sets maximum digits for formatting numbers displayed in the legend * This property is ignored when setting ValueFormatSpecifiers or ValueFormatString properties */ get: function () { return this.i.lo; }, set: function (v) { this.i.lo = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueFormatMinFractions", { /** * Gets or sets minimum digits for formatting numbers displayed in the legend * This property is ignored when setting ValueFormatSpecifiers or ValueFormatString properties */ get: function () { return this.i.lp; }, set: function (v) { this.i.lp = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueFormatMode", { /** * Gets or sets the mode for displaying values in the data legend, e.g. Currency ($500.25), Decimal (500.25), Integer (500) */ get: function () { return this.i.bt; }, set: function (v) { this.i.bt = ensureEnum(DataLegendValueMode_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueFormatCulture", { /** * Gets or sets globalization culture when displaying values as currencies, e.g. use "en-GB" to display British pound symbol when the ValueFormatMode property is set to 'Currency' mode * This property is ignored when setting ValueFormatSpecifiers or ValueFormatString properties */ get: function () { return this.i.qf; }, set: function (v) { this.i.qf = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueFormatUseGrouping", { /** * Gets or sets whether or not use grouping separator, e.g, 15,000 for 15000 * This property is ignored when setting ValueFormatSpecifiers or ValueFormatString properties */ get: function () { return this.i.gy; }, set: function (v) { this.i.gy = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueFormatString", { /** * Gets or sets the format string for values displayed in the data legend. */ get: function () { return this.i.ql; }, set: function (v) { this.i.ql = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueFormatSpecifiers", { /** * Gets or sets the format specifiers to use with the ValueFormatString string. */ get: function () { return this.i.n; }, set: function (v) { if (v && !Array.isArray(v) && typeof (v) == "string") { var re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.n = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueRowMarginBottom", { get: function () { return this.i.aak ? this.i.aak.bottom : NaN; }, set: function (v) { this.ensureDataToolTipValueRowMargin(); this.i.aak.bottom = +v; this.i.aak = this.i.aak; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueRowMarginLeft", { get: function () { return this.i.aak ? this.i.aak.left : NaN; }, set: function (v) { this.ensureDataToolTipValueRowMargin(); this.i.aak.left = +v; this.i.aak = this.i.aak; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueRowMarginRight", { get: function () { return this.i.aak ? this.i.aak.right : NaN; }, set: function (v) { this.ensureDataToolTipValueRowMargin(); this.i.aak.right = +v; this.i.aak = this.i.aak; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueRowMarginTop", { get: function () { return this.i.aak ? this.i.aak.top : NaN; }, set: function (v) { this.ensureDataToolTipValueRowMargin(); this.i.aak.top = +v; this.i.aak = this.i.aak; }, enumerable: false, configurable: true }); IgxDomainChartComponent.prototype.ensureDataToolTipValueRowMargin = function () { if (this.i.aak) { return; } this.i.aak = new Thickness(2); }; Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueRowVisible", { /** * Gets or sets whether to show series rows. */ get: function () { return this.i.gz; }, set: function (v) { this.i.gz = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueTextWhenMissingData", { /** * Gets or sets text displayed when data column is missing a value, e.g. "no data" */ get: function () { return this.i.qu; }, set: function (v) { this.i.qu = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueTextUseSeriesColors", { /** * Gets or sets whether to use series colors when displaying values in the legend */ get: function () { return this.i.g0; }, set: function (v) { this.i.g0 = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueTextMarginBottom", { get: function () { return this.i.aal ? this.i.aal.bottom : NaN; }, set: function (v) { this.ensureDataToolTipValueTextMargin(); this.i.aal.bottom = +v; this.i.aal = this.i.aal; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueTextMarginLeft", { get: function () { return this.i.aal ? this.i.aal.left : NaN; }, set: function (v) { this.ensureDataToolTipValueTextMargin(); this.i.aal.left = +v; this.i.aal = this.i.aal; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueTextMarginRight", { get: function () { return this.i.aal ? this.i.aal.right : NaN; }, set: function (v) { this.ensureDataToolTipValueTextMargin(); this.i.aal.right = +v; this.i.aal = this.i.aal; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueTextMarginTop", { get: function () { return this.i.aal ? this.i.aal.top : NaN; }, set: function (v) { this.ensureDataToolTipValueTextMargin(); this.i.aal.top = +v; this.i.aal = this.i.aal; }, enumerable: false, configurable: true }); IgxDomainChartComponent.prototype.ensureDataToolTipValueTextMargin = function () { if (this.i.aal) { return; } this.i.aal = new Thickness(2); }; Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueTextColor", { /** * Gets or sets the units text color. */ get: function () { return brushToString(this.i.ze); }, set: function (v) { this.i.ze = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipValueTextStyle", { /** * Gets or Sets the style to use for the units text. */ get: function () { if (this.i.fg == null) { return null; } return this.i.fg.fontString; }, set: function (v) { var fi = new FontInfo(); fi.fontString = v; this.i.fg = fi; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderFormatString", { /** * Gets or sets the format string for header text displayed in the data legend. */ get: function () { return this.i.o5; }, set: function (v) { this.i.o5 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderFormatSpecifiers", { /** * Gets or sets the format specifiers to use with the HeaderFormatString string. */ get: function () { return this.i.k; }, set: function (v) { if (v && !Array.isArray(v) && typeof (v) == "string") { var re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.k = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderFormatCulture", { /** * Gets or sets globalization culture when displaying header as date time * This property is ignored when setting HeaderFormatSpecifiers or HeaderFormatString properties */ get: function () { return this.i.o1; }, set: function (v) { this.i.o1 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderFormatDate", { /** * Gets or sets date format for the header * This property is ignored when setting HeaderFormatSpecifiers or HeaderFormatString properties */ get: function () { return this.i.bj; }, set: function (v) { this.i.bj = ensureEnum(DataLegendHeaderDateMode_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderFormatTime", { /** * Gets or sets time format for the header * This property is ignored when setting HeaderFormatSpecifiers or HeaderFormatString properties */ get: function () { return this.i.bl; }, set: function (v) { this.i.bl = ensureEnum(DataLegendHeaderTimeMode_$type, v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderText", { /** * Gets or sets the HeaderText for the data legend. */ get: function () { return this.i.pa; }, set: function (v) { this.i.pa = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderTextColor", { /** * Gets or sets the header text color. */ get: function () { return brushToString(this.i.y6); }, set: function (v) { this.i.y6 = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderTextMarginBottom", { get: function () { return this.i.aae ? this.i.aae.bottom : NaN; }, set: function (v) { this.ensureDataToolTipHeaderTextMargin(); this.i.aae.bottom = +v; this.i.aae = this.i.aae; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderTextMarginLeft", { get: function () { return this.i.aae ? this.i.aae.left : NaN; }, set: function (v) { this.ensureDataToolTipHeaderTextMargin(); this.i.aae.left = +v; this.i.aae = this.i.aae; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderTextMarginRight", { get: function () { return this.i.aae ? this.i.aae.right : NaN; }, set: function (v) { this.ensureDataToolTipHeaderTextMargin(); this.i.aae.right = +v; this.i.aae = this.i.aae; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderTextMarginTop", { get: function () { return this.i.aae ? this.i.aae.top : NaN; }, set: function (v) { this.ensureDataToolTipHeaderTextMargin(); this.i.aae.top = +v; this.i.aae = this.i.aae; }, enumerable: false, configurable: true }); IgxDomainChartComponent.prototype.ensureDataToolTipHeaderTextMargin = function () { if (this.i.aae) { return; } this.i.aae = new Thickness(2); }; Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderRowMarginBottom", { get: function () { return this.i.aad ? this.i.aad.bottom : NaN; }, set: function (v) { this.ensureDataToolTipHeaderRowMargin(); this.i.aad.bottom = +v; this.i.aad = this.i.aad; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderRowMarginLeft", { get: function () { return this.i.aad ? this.i.aad.left : NaN; }, set: function (v) { this.ensureDataToolTipHeaderRowMargin(); this.i.aad.left = +v; this.i.aad = this.i.aad; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderRowMarginRight", { get: function () { return this.i.aad ? this.i.aad.right : NaN; }, set: function (v) { this.ensureDataToolTipHeaderRowMargin(); this.i.aad.right = +v; this.i.aad = this.i.aad; }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderRowMarginTop", { get: function () { return this.i.aad ? this.i.aad.top : NaN; }, set: function (v) { this.ensureDataToolTipHeaderRowMargin(); this.i.aad.top = +v; this.i.aad = this.i.aad; }, enumerable: false, configurable: true }); IgxDomainChartComponent.prototype.ensureDataToolTipHeaderRowMargin = function () { if (this.i.aad) { return; } this.i.aad = new Thickness(2); }; Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderRowVisible", { /** * Gets or sets whether to show Header row. */ get: function () { return this.i.gw; }, set: function (v) { this.i.gw = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxDomainChartComponent.prototype, "dataToolTipHeaderTextStyle", { /** * Gets or Sets the style to use for the header text. */ get: function () { if (this.i.e8 == null) { return null; } return this.i.e8.fontString; }, set: function (v) { var fi = new FontInfo(); fi.fontString = v; this.i.e8 = fi; }, enumerable: false, configurable: true }); Object.definePropert