class RatatuiRuby::Widgets::Axis
- title
-
String
- bounds
-
Array<Float> [min, max]
- labels
-
Array<String>
- style
labels_alignment-
Symbol (
:left,:center,:right)
Attributes
Range [min, max] (Array of Floats).
Explicit labels for ticks (Array of Strings).
Alignment of axis labels (:left, :center, :right).
Label for the axis (String).
Public Class Methods
Source
# File lib/ratatui_ruby/widgets/chart.rb, line 46 def initialize(title: "", bounds: [0.0, 10.0], labels: [], style: nil, labels_alignment: nil) super( title:, bounds: [Float(bounds[0]), Float(bounds[1])], labels:, style:, labels_alignment: ) end
Creates a new Axis.
- title
-
String.
- bounds
-
Array [min, max].
- labels
-
Array of Strings.
- style
labels_alignment-
Symbol (:left, :center, :right).
Calls superclass method