UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

28 lines (26 loc) 974 B
import { IgrStrategyBasedIndicator } from "./igr-strategy-based-indicator"; /** * Financial indicator base class for doing calculating an itemwize indicator. * An itemwise indicator's individual values don't depend on any other values in the * collection so can always be independently recalculated. Also, because of this, the * base class handles all the looping logic and inheritors only need to provide the * actual calculation. */ export class IgrItemwiseStrategyBasedIndicator extends IgrStrategyBasedIndicator { /** * @hidden */ get i() { return this._implementation; } constructor(props) { super(props); } /** * This is a marker method to distinguish this from a public api perspective on some platforms compared to the base strategy based indicators. */ resolveIsItemwise() { let iv = this.i.acn(); return (iv); } }