OverlayFn
Documentation / @elitechart/core / OverlayFn
Defined in: chart.ts:209
Overlay render function — invoked on the Overlay layer each frame.
Overlays receive a backend-neutral Paint, the current Viewport,
and the current bars. Use viewport.timeToX(...) / viewport.priceToY(...)
to map indicator values to canvas pixels.
Overlays are the simplest form of the plugin seam formalized in M6. They are intended for user-level overlays (SMA, EMA, custom markers). Heavy compute should be cached or off-loaded — overlays are called on every repaint of the Overlay layer.
Parameters
paint
viewport
bars
readonly Bar[]
Returns
void