Skip to content

Function: renderColorbars()

ts
function renderColorbars(
   host, 
   infos, 
   opts, 
   theme, 
   regionHeight): void;

Defined in: render/colorbar.ts:154

Fill host with one bar per colour scale, stacked vertically inside regionHeight px. Hides the host when there is nothing to show.

Parameters

ParameterType
hostHTMLElement
infosreadonly ColorInfo[]
optsColorbarOptions
themeColorbarTheme
regionHeightnumber

Returns

void

MIT licensed. WebGL2 required.