class RatatuiRuby::Sparkline
A widget that displays a compact data row.
- data
-
Array of Integers.
- max
-
Optional maximum value.
- style
-
Optional style for the sparkline.
- block
-
Optional block widget to wrap the sparkline.
Public Class Methods
Source
# File lib/ratatui_ruby/schema/sparkline.rb, line 20 def initialize(data:, max: nil, style: nil, block: nil) super end
- data
-
Array of Integers.
- max
-
Optional maximum value.
- style
-
Optional style for the sparkline.
- block
-
Optional block widget to wrap the sparkline.
Calls superclass method