Skip to content

UI.PlotLine

Name Mandatory Description Default Type
⬅️ Input A sequence of point coordinates. [Float2]
Output ➡️ The output of this shard will be its input. [Float2]
Color No Stroke color. none ColorVar(Color)None
Name No Name of this chart, displayed in the plot legend. none StringNone

Line-connected points on a plot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
@wire(ui-wire {
  UI.Window(
    Title: "UI PlotLine"
    Position: @f2(0 0)
    Anchor: Anchor::Center
    Width: 700
    Height: 400
    Contents: {
      UI.CentralPanel(
        UI.Plot({
          [@f2(-1) @f2(0) @f2(1)] | UI.PlotLine
        })
      )
    }
  )
} Looped: true)

{ui-behavior: ui-wire}