Hardware-accelerated geospatial data plotting in the browser
autumnplot-gl • Docs
autumnplot-gl / ColorBarOptions
optional
fontface:string
A font face to use for the label and tick values.
'sans-serif'
optional
label:string
The label to place along the color bar
optional
orientation:ColorbarOrientation
The orientation for the color bar. Valid values are ‘horizontal’ and ‘vertical’.
'vertical'
optional
tick_direction:ColorbarTickDirection
The direction the ticks should face. Valid values are ‘left’ and ‘right’ if orientation is ‘vertical’ and ‘top’ and ‘bottom’ if orientation is ‘horizontal’.
'left' if orientation is 'vertical' and 'bottom' if orientation is 'horizontal'
optional
ticklabelsize:number
The font size (in points) to use for the tick labels
12
optional
ticks:number
[]
An array of numbers to use as the tick locations.
Use all the levels in the color map provided to {@link makeColorBar}.