igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
70 lines (69 loc) • 1.69 kB
JavaScript
/**
* Represents event argument for DataLegendSummaryCalculationCustom
*/
export class IgxDataLegendSummaryEventArgs {
constructor() {
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
onImplementationCreated() {
}
_provideImplementation(i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
}
/**
* Gets actual values in the current a column
*/
get columnValues() {
return this.i.columnValues;
}
set columnValues(v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
const re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.columnValues = v;
}
/**
* Gets member path to identify a column
*/
get columnMemberPath() {
return this.i.columnMemberPath;
}
set columnMemberPath(v) {
this.i.columnMemberPath = v;
}
/**
* Gets or sets summary values displayed below data column
*/
get summaryValue() {
return this.i.summaryValue;
}
set summaryValue(v) {
this.i.summaryValue = +v;
}
/**
* Gets or sets text displayed or right side of SummaryValue
*/
get summaryUnits() {
return this.i.summaryUnits;
}
set summaryUnits(v) {
this.i.summaryUnits = v;
}
/**
* Gets or sets text displayed or left side of SummaryValue
*/
get summaryLabel() {
return this.i.summaryLabel;
}
set summaryLabel(v) {
this.i.summaryLabel = v;
}
}