UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

66 lines (65 loc) 2.18 kB
/* 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 { StackedSplineAreaSeries } from "./StackedSplineAreaSeries"; import { IStacked100Series_$type } from "./IStacked100Series"; import { markType } from "igniteui-angular-core"; import { Stacked100DataPreparer } from "./Stacked100DataPreparer"; import { StackedSplineAreaSeriesView } from "./StackedSplineAreaSeriesView"; import { Defaults } from "./Defaults"; /** * @hidden */ export class Stacked100SplineAreaSeries extends StackedSplineAreaSeries { static { this.$t = markType(Stacked100SplineAreaSeries, 'Stacked100SplineAreaSeries', StackedSplineAreaSeries.$, [IStacked100Series_$type]); } ct() { return new Stacked100SplineAreaSeriesView(this); } rj(a) { super.rj(a); this.adk = a; } get_aci() { return true; } constructor() { super(); this.ab = Stacked100SplineAreaSeries.$; } ac() { super.ac(); this.sa(false); } acz() { super.acz(); Stacked100DataPreparer.a(this); } aco(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.aa2; } } /** * @hidden */ export class Stacked100SplineAreaSeriesView extends StackedSplineAreaSeriesView { static { this.$t = markType(Stacked100SplineAreaSeriesView, 'Stacked100SplineAreaSeriesView', StackedSplineAreaSeriesView.$); } constructor(a) { super(a); } a4() { super.a4(); if (!this.t) { this.di.xy = Defaults.e; } } }