Legend Widget
Display a color scale legend overlay on the visualization.
Syntax
{ "id": "n1", "op": "legend-widget", "name": "legend-widget", "x": 0, "y": 0, "params": {} }
One out of it starts at "sourcePort": "widget"; a parameter is set in params (leave out the ones at their default), driven by an edge to par:minValue, or read elsewhere as ch('legend-widget/minValue').
Inputs
This operator has no input ports.
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
colorScheme | string | "viridis" | |
label | string | "" | |
minValue | float | 0 | |
maxValue | float | 1 | |
placement | menu | "bottom-right" | top-left, top-right, bottom-left, bottom-right |
steps | float | 12 | |
scale | float | 1 |
Outputs
| Port | Type |
|---|---|
widget | value |
Details
- Category: Output
- Operator:
legend-widget
Older projects
Projects saved before documents used operator classes. These convert to legend-widget when they open: LegendWidgetOp.