igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
89 lines (88 loc) • 3.04 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 { StackedColumnSeries } from "./StackedColumnSeries";
import { IStacked100Series_$type } from "./IStacked100Series";
import { Defaults } from "./Defaults";
import { markType } from "igniteui-react-core";
import { Stacked100DataPreparer } from "./Stacked100DataPreparer";
import { isNaN_ } from "igniteui-react-core";
import { StackedColumnSeriesView } from "./StackedColumnSeriesView";
import { Stacked100ColumnBucketCalculator } from "./Stacked100ColumnBucketCalculator";
/**
* @hidden
*/
export let Stacked100ColumnSeries = /*@__PURE__*/ (() => {
class Stacked100ColumnSeries extends StackedColumnSeries {
get_abs() {
return true;
}
jt() {
if (!isNaN_(this.js)) {
return super.jt();
}
return Defaults.h;
}
constructor() {
super();
this.ab = Stacked100ColumnSeries.$;
}
ac() {
super.ac();
this.r9(false);
}
ct() {
return new Stacked100ColumnSeriesView(this);
}
ri(a) {
super.ri(a);
this.acx = a;
}
abj() {
return this.acx;
}
ab9() {
super.ab9();
Stacked100DataPreparer.a(this);
}
aby(a, b) {
let c = 0;
for (let d = 0; d < this.series.count; d++) {
c += this.series._inner[d].an.item(b);
}
return (this.series._inner[a].an.item(b) / c) * 100;
}
get useHighMarkerFidelity() {
return this.aac;
}
}
Stacked100ColumnSeries.$t = /*@__PURE__*/ markType(Stacked100ColumnSeries, 'Stacked100ColumnSeries', StackedColumnSeries.$, [IStacked100Series_$type]);
return Stacked100ColumnSeries;
})();
/**
* @hidden
*/
export let Stacked100ColumnSeriesView = /*@__PURE__*/ (() => {
class Stacked100ColumnSeriesView extends StackedColumnSeriesView {
constructor(a) {
super(a);
this.dn = null;
this.dn = a;
}
da() {
return new Stacked100ColumnBucketCalculator(this);
}
a4() {
super.a4();
if (!this.t) {
this.di.xw = Defaults.c;
this.di.jz = Defaults.i;
}
}
}
Stacked100ColumnSeriesView.$t = /*@__PURE__*/ markType(Stacked100ColumnSeriesView, 'Stacked100ColumnSeriesView', StackedColumnSeriesView.$);
return Stacked100ColumnSeriesView;
})();