igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
72 lines (71 loc) • 2.49 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 { StackedLineSeries } from "./StackedLineSeries";
import { IStacked100Series_$type } from "./IStacked100Series";
import { markType } from "igniteui-react-core";
import { Stacked100DataPreparer } from "./Stacked100DataPreparer";
import { StackedLineSeriesView } from "./StackedLineSeriesView";
import { Defaults } from "./Defaults";
/**
* @hidden
*/
export let Stacked100LineSeries = /*@__PURE__*/ (() => {
class Stacked100LineSeries extends StackedLineSeries {
ct() {
return new Stacked100LineSeriesView(this);
}
rh(a) {
super.rh(a);
this.acq = a;
}
get_abr() {
return true;
}
constructor() {
super();
this.ab = Stacked100LineSeries.$;
}
ac() {
super.ac();
this.r8(false);
}
ab8() {
super.ab8();
Stacked100DataPreparer.a(this);
}
abx(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.aab;
}
}
Stacked100LineSeries.$t = /*@__PURE__*/ markType(Stacked100LineSeries, 'Stacked100LineSeries', StackedLineSeries.$, [IStacked100Series_$type]);
return Stacked100LineSeries;
})();
/**
* @hidden
*/
export let Stacked100LineSeriesView = /*@__PURE__*/ (() => {
class Stacked100LineSeriesView extends StackedLineSeriesView {
constructor(a) {
super(a);
}
a4() {
super.a4();
if (!this.t) {
this.di.xv = Defaults.e;
}
}
}
Stacked100LineSeriesView.$t = /*@__PURE__*/ markType(Stacked100LineSeriesView, 'Stacked100LineSeriesView', StackedLineSeriesView.$);
return Stacked100LineSeriesView;
})();