Interface: ColorbarOptions
Defined in: render/colorbar.ts:13
Properties
borderColor?
ts
optional borderColor?: string;Defined in: render/colorbar.ts:27
font?
ts
optional font?: string;Defined in: render/colorbar.ts:28
format?
ts
optional format?: (value) => string;Defined in: render/colorbar.ts:25
Formats a tick value. Defaults to a compact 3-significant-digit formatter.
Parameters
| Parameter | Type |
|---|---|
value | number |
Returns
string
heightFraction?
ts
optional heightFraction?: number;Defined in: render/colorbar.ts:21
Fraction of the plot height the bar spans, 0..1. Default 0.72.
label?
ts
optional label?: string;Defined in: render/colorbar.ts:17
Caption above the bar. Defaults to the layer's name.
position?
ts
optional position?: "left" | "right";Defined in: render/colorbar.ts:15
Which side of the plot region the bar sits on. Default "right".
textColor?
ts
optional textColor?: string;Defined in: render/colorbar.ts:26
ticks?
ts
optional ticks?: number;Defined in: render/colorbar.ts:23
Target number of tick labels. Default 5.
width?
ts
optional width?: number;Defined in: render/colorbar.ts:19
Bar thickness in px. Default 12.