Skip to main content

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​

ParameterKindDefaultChoices
colorSchemestring"viridis"
labelstring""
minValuefloat0
maxValuefloat1
placementmenu"bottom-right"top-left, top-right, bottom-left, bottom-right
stepsfloat12
scalefloat1

Outputs​

PortType
widgetvalue

Details​

  • Category: Output
  • Operator: legend-widget

Older projects​

Projects saved before documents used operator classes. These convert to legend-widget when they open: LegendWidgetOp.