Class: Charty::Plotters::CategoricalPlotter
- Inherits:
-
AbstractPlotter
- Object
- AbstractPlotter
- Charty::Plotters::CategoricalPlotter
- Defined in:
- lib/charty/plotters/categorical_plotter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#group_label ⇒ Object
readonly
Returns the value of attribute group_label.
-
#group_names ⇒ Object
readonly
Returns the value of attribute group_names.
-
#order ⇒ Object
Returns the value of attribute order.
-
#plot_data ⇒ Object
readonly
Returns the value of attribute plot_data.
-
#value_label ⇒ Object
readonly
Returns the value of attribute value_label.
Attributes inherited from AbstractPlotter
#color, #data, #palette, #x, #y
Instance Method Summary collapse
-
#initialize(x, y, color, **options, &block) ⇒ CategoricalPlotter
constructor
A new instance of CategoricalPlotter.
Methods inherited from AbstractPlotter
Constructor Details
#initialize(x, y, color, **options, &block) ⇒ CategoricalPlotter
Returns a new instance of CategoricalPlotter.
4 5 6 7 8 9 |
# File 'lib/charty/plotters/categorical_plotter.rb', line 4 def initialize(x, y, color, **, &block) super setup_variables setup_colors end |
Instance Attribute Details
#group_label ⇒ Object (readonly)
Returns the value of attribute group_label.
26 27 28 |
# File 'lib/charty/plotters/categorical_plotter.rb', line 26 def group_label @group_label end |
#group_names ⇒ Object (readonly)
Returns the value of attribute group_names.
26 27 28 |
# File 'lib/charty/plotters/categorical_plotter.rb', line 26 def group_names @group_names end |
#order ⇒ Object
Returns the value of attribute order.
11 12 13 |
# File 'lib/charty/plotters/categorical_plotter.rb', line 11 def order @order end |
#plot_data ⇒ Object (readonly)
Returns the value of attribute plot_data.
26 27 28 |
# File 'lib/charty/plotters/categorical_plotter.rb', line 26 def plot_data @plot_data end |
#value_label ⇒ Object (readonly)
Returns the value of attribute value_label.
26 27 28 |
# File 'lib/charty/plotters/categorical_plotter.rb', line 26 def value_label @value_label end |