new ColormapLegend(viewer, colorscale [, options])
Creates a new ColormapLegend instance.
Parameters:
Name | Type | Argument | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Object | Viewer instance to attach legend to |
||||||||||||||||||||||||||
colorscale |
Colormap | Colormap to create legend for |
||||||||||||||||||||||||||
options |
Object |
<optional> |
Configuration options Properties
|
- Source: