igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
1,460 lines • 206 kB
JavaScript
import { __extends, __values } from "tslib";
import * as React from 'react';
import { HorizontalAlignment_$type } from "igniteui-react-core";
import { UnknownValuePlotting_$type } from "igniteui-react-core";
import { TrendLineType_$type } from "igniteui-react-core";
import { IgrChartSeriesEventArgs } from './igr-chart-series-event-args';
import { arrayFindByName, brushToString, stringToBrush, toBrushCollection, fromBrushCollection, fromRect, toRect, ensureBool, ensureEnum, isValidProp, getModifiedProps, toSpinal, initializePropertiesFromCss, NamePatcher } from "igniteui-react-core";
import { MarkerType_$type } from "./MarkerType";
import { delegateCombine, delegateRemove } from "igniteui-react-core";
import { IgrDomainChartSeriesPointerEventArgs } from './igr-domain-chart-series-pointer-event-args';
import { MarkerTypeCollection as MarkerTypeCollection_internal } from './MarkerTypeCollection';
import { IgrMarkerTypeCollection } from './igr-marker-type-collection';
import { SyncableObservableCollection$1 } from "igniteui-react-core";
import { ToolTipType_$type } from "./ToolTipType";
import { CrosshairsDisplayMode_$type } from "./CrosshairsDisplayMode";
import { IgrCalloutStyleUpdatingEventArgs } from "./igr-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-react-core";
import { LegendItemBadgeShape_$type } from "igniteui-react-core";
import { DataAbbreviationMode_$type } from "igniteui-react-core";
import { DataLegendValueMode_$type } from "igniteui-react-core";
import { DataLegendHeaderDateMode_$type } from "igniteui-react-core";
import { DataLegendHeaderTimeMode_$type } from "igniteui-react-core";
import { DataLegendUnitsMode_$type } from "igniteui-react-core";
import { DataLegendLabelMode_$type } from "igniteui-react-core";
import { DataLegendSummaryType_$type } from "igniteui-react-core";
import { Thickness } from "igniteui-react-core";
import { FontInfo } from "igniteui-react-core";
import { SeriesPlotAreaMarginHorizontalMode_$type } from './SeriesPlotAreaMarginHorizontalMode';
import { SeriesPlotAreaMarginVerticalMode_$type } from './SeriesPlotAreaMarginVerticalMode';
import { IgrCalloutPlacementPositionsCollection } from './igr-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 { IgrCalloutRenderStyleUpdatingEventArgs } from './igr-callout-render-style-updating-event-args';
import { CalloutPlacementPositionsCollection as CalloutPlacementPositionsCollection_internal } from './CalloutPlacementPositionsCollection';
import { DataToolTipLayerGroupingMode_$type } from "igniteui-react-core";
import { DataTooltipGroupedPositionX_$type } from "igniteui-react-core";
import { DataTooltipGroupedPositionY_$type } from "igniteui-react-core";
import { IgrChartSummaryDescriptionCollection } from './igr-chart-summary-description-collection';
import { IgrChartSortDescriptionCollection } from './igr-chart-sort-description-collection';
import { IgrFilterExpressionCollection } from "igniteui-react-core";
import { ValueModeCollection as ValueModeCollection_internal } from './ValueModeCollection';
import { IgrValueModeCollection } from './igr-value-mode-collection';
import { ValueLayerValueMode_$type } from './ValueLayerValueMode';
import { IgrFilterStringErrorsParsingEventArgs } from './igr-filter-string-errors-parsing-event-args';
import { SeriesHighlightedValuesDisplayMode_$type } from "igniteui-react-core";
import { SeriesSelectionMode_$type } from './SeriesSelectionMode';
import { SeriesSelectionBehavior_$type } from './SeriesSelectionBehavior';
import { ChartSelectedItemCollection as ChartSelectedItemCollection_internal } from "./ChartSelectedItemCollection";
import { ChartSelection } from "./ChartSelection";
import { IgrSeriesViewerSelectedSeriesItemsChangedEventArgs } from "./igr-series-viewer-selected-series-items-changed-event-args";
import { IgrChartSelectedItemCollection } from "./igr-chart-selected-item-collection";
import { CalloutCollisionMode_$type } from "igniteui-react-core";
import { Visibility_$type } from "igniteui-react-core";
import { IgrDomainChartPlotAreaPointerEventArgs } from './igr-domain-chart-plot-area-pointer-event-args';
import { IgrTrendLineTypeCollection } from './igr-trend-line-type-collection';
import { TrendLineTypeCollection as TrendLineTypeCollection_internal } from './TrendLineTypeCollection';
var IgrDomainChart = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgrDomainChart, _super);
function IgrDomainChart(props) {
var _this = _super.call(this, props) || this;
_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._seriesAdded_wrapped = null;
_this._seriesRemoved = null;
_this._seriesRemoved_wrapped = null;
_this._seriesPointerEnter = null;
_this._seriesPointerEnter_wrapped = null;
_this._seriesPointerLeave = null;
_this._seriesPointerLeave_wrapped = null;
_this._seriesPointerMove = null;
_this._seriesPointerMove_wrapped = null;
_this._seriesPointerDown = null;
_this._seriesPointerDown_wrapped = null;
_this._seriesPointerUp = null;
_this._seriesPointerUp_wrapped = null;
_this._seriesClick = null;
_this._seriesClick_wrapped = null;
_this._plotAreaPointerEnter = null;
_this._plotAreaPointerEnter_wrapped = null;
_this._plotAreaPointerLeave = null;
_this._plotAreaPointerLeave_wrapped = null;
_this._plotAreaPointerMove = null;
_this._plotAreaPointerMove_wrapped = null;
_this._plotAreaPointerDown = null;
_this._plotAreaPointerDown_wrapped = null;
_this._plotAreaPointerUp = null;
_this._plotAreaPointerUp_wrapped = null;
_this._calloutStyleUpdating = null;
_this._calloutStyleUpdating_wrapped = null;
_this._calloutRenderStyleUpdating = null;
_this._calloutRenderStyleUpdating_wrapped = null;
_this._selectedSeriesItemsChanged = null;
_this._selectedSeriesItemsChanged_wrapped = null;
_this._focusedSeriesItemsChanged = null;
_this._focusedSeriesItemsChanged_wrapped = null;
_this._filterStringErrorsParsing = null;
_this._filterStringErrorsParsing_wrapped = null;
if (_this._styling) {
NamePatcher.ensureStylablePatched(Object.getPrototypeOf(_this));
}
_this._implementation = _this.createImplementation();
_this._implementation.externalObject = _this;
_this.onImplementationCreated();
return _this;
}
IgrDomainChart.prototype.createImplementation = function () {
return null;
};
Object.defineProperty(IgrDomainChart.prototype, "i", {
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrDomainChart.prototype.onImplementationCreated = function () {
};
IgrDomainChart.prototype.componentDidMount = function () {
var e_1, _a;
try {
for (var _b = __values(Object.keys(this.props)), _c = _b.next(); !_c.done; _c = _b.next()) {
var p = _c.value;
if (isValidProp(this, p)) {
this[p] = this.props[p];
}
}
}
catch (e_1_1) {
e_1 = { error: e_1_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_1)
throw e_1.error;
}
}
};
IgrDomainChart.prototype.shouldComponentUpdate = function (nextProps, nextState) {
var e_2, _a;
var mod = getModifiedProps(this.props, nextProps);
try {
for (var _b = __values(Object.keys(mod)), _c = _b.next(); !_c.done; _c = _b.next()) {
var p = _c.value;
if (isValidProp(this, p)) {
this[p] = mod[p];
}
}
}
catch (e_2_1) {
e_2 = { error: e_2_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_2)
throw e_2.error;
}
}
return true;
};
IgrDomainChart.prototype.render = function () {
return null;
};
Object.defineProperty(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.prototype, "calloutsDataSource", {
get: function () {
return this._calloutsDataSource;
},
set: function (value) {
this._calloutsDataSource = value;
this.bindCalloutsData();
},
enumerable: false,
configurable: true
});
IgrDomainChart.prototype.bindCalloutsData = function () {
if (this.i != null && this.i !== undefined) {
this.i.calloutsItemsSource = this._calloutsDataSource;
}
};
Object.defineProperty(IgrDomainChart.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(IgrDomainChart.prototype, "titleLeftMargin", {
/**
* Gets or sets the left margin of chart title
*
* Use `titleLeftMargin` property for the left margin of chart title.
*
* ```ts
* this.chart.titleLeftMargin = 10;
* ```
*
* ```ts
* <IgrCategoryChart dataSource={this.state.data}
* titleLeftMargin={20}>
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.km;
},
set: function (v) {
this.i.km = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "titleRightMargin", {
/**
* Gets or sets the right margin of chart title
*
* Use `titleLeftMargin` property for the right margin of chart title.
*
* ```ts
* this.chart.titleRightMargin = 10;
* ```
*
* ```ts
* <IgrCategoryChart
* dataSource={this.state.data}
* titleRightMargin = 10>
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.kn;
},
set: function (v) {
this.i.kn = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "titleTopMargin", {
/**
* Gets or sets the top margin of chart title
*
* Use `titleTopMargin` property for the top margin of chart title.
*
* ```ts
* this.chart.titleTopMargin = 10;
* ```
*
* ```ts
* <IgrCategoryChart dataSource={this.state.data}
* titleTopMargin={10} />
* ```
*/
get: function () {
return this.i.ko;
},
set: function (v) {
this.i.ko = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "titleBottomMargin", {
/**
* Gets or sets the bottom margin of chart title
*
* Use `titleBottomMargin` property for the bottom margin of chart title.
*
* ```ts
* this.chart.titleBottomMargin = 5;
* ```
*
* ```ts
* <IgrCategoryChart
* width="100%"
* height="100%"
* chartType="Line"
* dataSource={this.categoryData}
* subtitle= "CategoryChart Subtitle"
* subtitleAlignment="Right"
* titleBottomMargin={5}/>
* ```
*/
get: function () {
return this.i.kl;
},
set: function (v) {
this.i.kl = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "subtitleLeftMargin", {
/**
* Gets or sets the left margin of chart subtitle
*
* Use `subtitleLeftMargin` property for the left margin of chart subtitle.
*
* ```ts
* this.chart.subtitleLeftMargin = 20 ;
* ```
*
* ```ts
* <IgrCategoryChart
* width="100%"
* height="100%"
* chartType="Line"
* dataSource={this.categoryData}
* subtitle= "CategoryChart Subtitle"
* subtitleLeftMargin= {20}/>
* ```
*/
get: function () {
return this.i.kh;
},
set: function (v) {
this.i.kh = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "subtitleTopMargin", {
/**
* Gets or sets the top margin of chart subtitle
*
* Use `subtitleTopMargin` property for the top margin of chart subtitle.
*
* ```ts
* this.chart.subtitleTopMargin = 10;
* ```
*
* ```ts
* <IgrCategoryChart
* width="100%"
* height="100%"
* chartType="Line"
* dataSource={this.categoryData}
* subtitle= "CategoryChart Subtitle"
* subtitleTopMargin= {10}/>
* ```
*/
get: function () {
return this.i.kj;
},
set: function (v) {
this.i.kj = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "subtitleRightMargin", {
/**
* Gets or sets the right margin of chart subtitle
*
* Use `subtitleRightMargin` property for the right margin of chart subtitle.
*
* ```ts
* this.chart.subtitleRightMargin = 20 ;
* ```
*
* ```ts
* <IgrCategoryChart
* width="100%"
* height="100%"
* chartType="Line"
* dataSource={this.categoryData}
* subtitle= "CategoryChart Subtitle"
* subtitleAlignment="Right"
* subtitleRightMargin ={20}/>
* ```
*/
get: function () {
return this.i.ki;
},
set: function (v) {
this.i.ki = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "subtitleBottomMargin", {
/**
* Gets or sets the bottom margin of chart subtitle
*
* Use `subtitleBottomMargin` property for the bottom margin of chart subtitle.
*
* ```ts
* <IgrCategoryChart
* width="100%"
* height="100%"
* chartType="Line"
* dataSource={this.categoryData}
* subtitle= "CategoryChart Subtitle"
* subtitleBottomMargin= {10}/>
* ```
*
* ```ts
* this.chart.subtitleBottomMargin = 10 ;
* ```
*/
get: function () {
return this.i.kg;
},
set: function (v) {
this.i.kg = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "subtitleTextColor", {
/**
* Gets or sets color of chart subtitle
*
* Use `subtitleTextColor` property to color the subtitle.
*
* ```ts
* this.chart.subtitleTextColor = "#ff0000" ;
* ```
*
* ```ts
* <IgrCategoryChart
* width="100%"
* height="100%"
* chartType="Line"
* dataSource={this.categoryData}
* subtitle= "CategoryChart Subtitle"
* subtitleTextColor="#ff0000"/>
* ```
*/
get: function () {
return brushToString(this.i.zq);
},
set: function (v) {
this.i.zq = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "titleTextColor", {
/**
* Gets or sets color of chart title
*
* Use `titleTextColor` property to color the chart title
*
* ```ts
* this.chart.titleTextColor="red" ;
* ```
*
* ```ts
* <IgrCategoryChart
* dataSource={this.state.data}
* width="700px"
* height="500px"
* xAxisTitle="Countries"
* titleTextColor="Red" />
*
* ```
*/
get: function () {
return brushToString(this.i.zr);
},
set: function (v) {
this.i.zr = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "leftMargin", {
/**
* Gets or sets the left margin of the chart content.
*
* Use the 'leftMargin' property for the left margin of the chart content.
*
* ```ts
* this.chart.leftMargin = 20;
* ```
*
* ```ts
* <IgrCategoryChart dataSource={this.state.data}
* leftMargin= {20}/>
* ```
*/
get: function () {
return this.i.j6;
},
set: function (v) {
this.i.j6 = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "topMargin", {
/**
* Gets or sets the top margin of the chart content.
*
* Use `topMargin` property for the margin of the chart content.
*
* ```ts
* this.chart.topMargin=20;
* ```
*
* ```ts
* <IgrCategoryChart dataSource={this.state.data}
* topMargin={10} />
* ```
*/
get: function () {
return this.i.kp;
},
set: function (v) {
this.i.kp = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "rightMargin", {
/**
* Gets or sets the right margin of the chart content.
*
* Use `rightMargin` property for the right margin of the chart content.
*
* ```ts
* this.chart.rightMargin = 20 ;
* ```
*
* ```ts
* <IgrCategoryChart
* width="100%"
* height="100%"
* chartType="Line"
* markerTypes={this.state.markersTypes}
* dataSource={this.categoryData}
* rightMargin= {4}/>
* ```
*/
get: function () {
return this.i.kf;
},
set: function (v) {
this.i.kf = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "bottomMargin", {
/**
* Gets or sets the bottom margin around the chart content.
*
* Use the `bottomMargin` property for the bottom margin around the chart content.
*
* ```ts
* this.chart.bottomMargin=20;
* ```
*
* ```ts
* <IgrCategoryChart dataSource={this.state.data}
* bottomMargin= 20 />
* ```
*/
get: function () {
return this.i.js;
},
set: function (v) {
this.i.js = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.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.
*
* ```ts
* this.chart.transitionDuratio= 500;
* ```
*
* ```ts
* <IgrCategoryChart dataSource={this.state.data}
* transitionDuratio={500} />
* ```
*/
get: function () {
return this.i.ly;
},
set: function (v) {
this.i.ly = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.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.
*
* ```ts
* this.chart.transitionInEasingFunction= this.cubicFunc;
*
* cubicFunc(time: number) : number
* {
* return time;
* }
* ```
*
* ```ts
* <IgrCategoryChart dataSource={this.state.data}
* transitionInEasingFunction="cubic" />
* ```
*/
get: function () {
return this.i.eu;
},
set: function (v) {
this.i.eu = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.prototype, "subtitleTextStyle", {
/**
* Gets or sets CSS font property for the chart subtitle
*
* Use `subtitleTextStyle` property for the CSS font of the chart subtitle.
*
* ```ts
* this.chart.subtitleTextStyle= "16pt Verdona";
* ```
*
* ```ts
* <IgrCategoryChart
* width="100%"
* height="100%"
* chartType="Line"
* dataSource={this.categoryData}
* subtitleTextStyle="16pt Verdona"/>
* ```
*/
get: function () {
return this.i.tf;
},
set: function (v) {
this.i.tf = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "titleTextStyle", {
/**
* Gets or sets CSS font property for the chart title
*
* Use `titleTextStyle` property for the CSS font property of the chart title
*
* ```ts
* this.chart.xAxisTitleTextStyle = "24pt Verdona";
* ```
*
* ```ts
* <IgrCategoryChart dataSource={this.state.data}
* width="700px"
* height="500px"
* xAxisTitle="Countries"
* xAxisTitleTextColor="gray"
* xAxisTitleTextStyle="12pt Verdana"
* xAxisTitleAngle={0}
* yAxisTitle="Trillions of Watt-hours (TWh)"
* yAxisTitleTextStyle="12pt Verdana"
* yAxisTitleTextColor="gray"
* yAxisTitleAngle={90}
* yAxisTitleLeftMargin={5}>
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.tq;
},
set: function (v) {
this.i.tq = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "isDetached", {
get: function () {
return this.i.isDetached;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.prototype, "dataToolTipGroupingMode", {
get: function () {
return this.i.bz;
},
set: function (v) {
this.i.bz = ensureEnum(DataToolTipLayerGroupingMode_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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
});
IgrDomainChart.prototype.ensureDataToolTipValueRowMargin = function () {
if (this.i.aak) {
return;
}
this.i.aak = new Thickness(2);
};
Object.defineProperty(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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
});
IgrDomainChart.prototype.ensureDataToolTipValueTextMargin = function () {
if (this.i.aal) {
return;
}
this.i.aal = new Thickness(2);
};
Object.defineProperty(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.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
});
IgrDomainChart.prototype.ensureDataToolTipHeaderTextMargin = function () {
if (this.i.aae) {
return;
}
this.i.aae = new Thickness(2);
};
Object.defineProperty(IgrDomainChart.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(IgrDomainChart.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(IgrDomainChart.prototype, "dataToolTipHeaderRowMargin