class RatatuiRuby::Dataset
Defines a Dataset for a Chart.
- name
-
The name of the dataset.
- data
-
Array of arrays [[x, y], [x, y]] (Floats).
- color
-
The color of the line.
- marker
-
Symbol (:dot, :braille, :block, :bar)
- graph_type
-
Symbol (:line, :scatter)
Public Class Methods
Source
# File lib/ratatui_ruby/schema/chart.rb, line 38 def initialize(name:, data:, color: "reset", marker: :dot, graph_type: :line) super end
- name
-
The name of the dataset.
- data
-
Array of arrays [[x, y], [x, y]] (Floats).
- color
-
The color of the line.
- marker
-
Symbol (:dot, :braille, :block, :bar)
- graph_type
-
Symbol (:line, :scatter)
Calls superclass method