Module: reefvision.widgets.sparkline

Source: ./reefvision/widgets/sparkline.reef


Overview

reefvision.widgets.sparkline — one-row ▁▂▃▄▅▆▇█ history strip


Objects

Sparkline

Extends: view.View

Fields:

Name Type
samples [int]
cap int
sample_count int
next_i int

proc init(bounds: cell.Rect, cap: int)

Methods:

override shared fn wants_focus(): bool

exclusive proc push(value: int)

exclusive proc clear()

exclusive fn sample_at(chron: int): int

override exclusive proc draw(buf: cell.CellBuffer, abs: cell.Rect, clip: cell.Rect, focused: bool, th: theme.Theme)


Functions

fn bar_ch(level: int): int


Generated by reefc doc