igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
89 lines (88 loc) • 3.03 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 { StackedBarSeries } from "./StackedBarSeries";
import { IStacked100Series_$type } from "./IStacked100Series";
import { Defaults } from "./Defaults";
import { markType } from "igniteui-angular-core";
import { Stacked100DataPreparer } from "./Stacked100DataPreparer";
import { isNaN_ } from "igniteui-angular-core";
import { StackedBarSeriesView } from "./StackedBarSeriesView";
import { Stacked100BarBucketCalculator } from "./Stacked100BarBucketCalculator";
/**
* @hidden
*/
export let Stacked100BarSeries = /*@__PURE__*/ (() => {
class Stacked100BarSeries extends StackedBarSeries {
constructor() {
super();
this.ab = Stacked100BarSeries.$;
}
get_aa3() {
return true;
}
jj() {
if (!isNaN_(this.ji)) {
return super.jj();
}
return Defaults.h;
}
ac() {
super.ac();
this.rq(false);
}
cs() {
return new Stacked100BarSeriesView(this);
}
q0(a) {
super.q0(a);
this.ab8 = a;
}
aau() {
return this.ab8;
}
abk() {
super.abk();
Stacked100DataPreparer.a(this);
}
aa9(a, b) {
let c = 0;
for (let d = 0; d < this.series.count; d++) {
c += this.series._inner[d].ak.item(b);
}
return (this.series._inner[a].ak.item(b) / c) * 100;
}
get useHighMarkerFidelity() {
return this.zp;
}
}
Stacked100BarSeries.$t = markType(Stacked100BarSeries, 'Stacked100BarSeries', StackedBarSeries.$, [IStacked100Series_$type]);
return Stacked100BarSeries;
})();
/**
* @hidden
*/
export let Stacked100BarSeriesView = /*@__PURE__*/ (() => {
class Stacked100BarSeriesView extends StackedBarSeriesView {
constructor(a) {
super(a);
this.db = null;
this.db = a;
}
cx() {
return new Stacked100BarBucketCalculator(this);
}
au() {
super.au();
if (!this.q) {
this.c5.w9 = Defaults.c;
this.c5.jo = Defaults.i;
}
}
}
Stacked100BarSeriesView.$t = markType(Stacked100BarSeriesView, 'Stacked100BarSeriesView', StackedBarSeriesView.$);
return Stacked100BarSeriesView;
})();