Skip to content

Modern Tui TuiSeries

Paul Squires edited this page Oct 19, 2026 · 6 revisions

Home › Terminal TUI Library › Charts › TuiSeries

TuiSeries

Holds one line of a graph: its values, newest last, plus a colour and name.

Syntax

type TuiSeries
    as TuiDoubleArray data
    as TuiColor color
    as ustring name
end type

Description

One line on a graph. THE RIGHTMOST SAMPLE IS THE NEWEST -- a history plot pushes on the end and drops from the front.

Example

#import "std/tui"
using tui

dim as TuiSeries s
for i as int32 = 0 to 99
    s.data.Push( 50.0 + sin( i / 7.0 ) * 40.0 )
next
s.color = TuiRgb( 120, 220, 160 )
s.name = "cpu"
print s.data.Count( )             '' 100

See also

TuiCanvas TuiCanvas.Dot TuiCanvas.DotWidth TuiCanvas.CellRows
TuiCanvas.Resize TuiCanvas.Line_ TuiCanvas.DotHeight TuiCanvas.Pattern
TuiCanvas.Clear TuiCanvas.Blit TuiCanvas.CellCols TuiGraph

Library: Terminal TUI Library
Category: Terminal TUI Library
Documented under: Charts
Working examples: hello.tiko · form.tiko · dashboard.tiko


Home · Keyword Index

Clone this wiki locally