Skip to main content
Version: 4.1

Interface: ISeriesPrimitivePaneRenderer

This interface represents rendering some element on the canvas

Methods

draw

draw(target): void

Method to draw main content of the element

Parameters

NameTypeDescription
targetCanvasRenderingTarget2Dcanvas context to draw on, refer to FancyCanvas library for more details about this class

Returns

void


drawBackground

Optional drawBackground(target): void

Optional method to draw the background. Some elements could implement this method to draw on the background of the chart. Usually this is some kind of watermarks or time areas highlighting.

Parameters

NameTypeDescription
targetCanvasRenderingTarget2Dcanvas context to draw on, refer FancyCanvas library for more details about this class

Returns

void