igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
36 lines (35 loc) • 1.47 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { Base, markType } from "igniteui-angular-core";
/**
* @hidden
*/
export let Stacked100DataPreparer = /*@__PURE__*/ (() => {
class Stacked100DataPreparer extends Base {
static a(a) {
if (a.dp == null) {
return;
}
let b = Number.POSITIVE_INFINITY;
let c = Number.NEGATIVE_INFINITY;
for (let d = 0; d < a.dp.count; d++) {
let e = Math.abs(a.abf[d]) + a.abe[d];
if (e == 0) {
b = Math.min(b, 0);
c = Math.max(c, 0);
continue;
}
b = Math.min(b, a.abf[d] / e * 100);
c = Math.max(c, a.abe[d] / e * 100);
}
a.aby = b;
a.abx = c;
}
}
Stacked100DataPreparer.$t = markType(Stacked100DataPreparer, 'Stacked100DataPreparer');
return Stacked100DataPreparer;
})();