class RatatuiRuby::LineChart
A complex chart widget. (Legacy/Alias for Chart)
- datasets
-
Array of
Datasetobjects. - x_labels
-
Array of Strings for the X-axis labels.
- y_labels
-
Array of Strings for the Y-axis labels.
- y_bounds
-
Array of two Floats [min, max] for the Y-axis.
- block
-
Optional block widget to wrap the chart.
Public Class Methods
Source
# File lib/ratatui_ruby/schema/chart.rb, line 175 def initialize(datasets:, x_labels: [], y_labels: [], y_bounds: [0.0, 100.0], block: nil) super( datasets:, x_labels:, y_labels:, y_bounds: [Float(y_bounds[0]), Float(y_bounds[1])], block: ) end
- datasets
-
Array of
Datasetobjects. - x_labels
-
Array of Strings for the X-axis labels.
- y_labels
-
Array of Strings for the Y-axis labels.
- y_bounds
-
Array of two Floats [min, max] for the Y-axis.
- block
-
Optional block widget to wrap the chart.
Calls superclass method