interface ISeriesTransform {
    clone(): ISeriesTransform;
    flush(): Bar[];
    push(bar: Bar): Bar[];
    reset(): void;
}

Implemented by

Methods

  • Optional: an independent copy of the state, for a live chart to push the forming bar through. push changes state on every call, so the bar that is still forming is pushed into a copy on each tick and into the transform itself only once it has closed. The built-in transforms all have one.

    Returns ISeriesTransform