Class: Charty::Plotters::BarPlotter
- Inherits:
-
CategoricalPlotter
- Object
- AbstractPlotter
- CategoricalPlotter
- Charty::Plotters::BarPlotter
- Defined in:
- lib/charty/plotters/bar_plotter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cap_size ⇒ Object
Returns the value of attribute cap_size.
-
#error_color ⇒ Object
Returns the value of attribute error_color.
-
#error_width ⇒ Object
Returns the value of attribute error_width.
-
#log ⇒ Object
Returns the value of attribute log.
Attributes inherited from CategoricalPlotter
#dodge, #group_label, #group_names, #order, #orient, #plot_data, #saturation, #value_label, #width
Attributes included from EstimationSupport
#ci, #estimator, #n_boot, #units
Attributes included from RandomSupport
Attributes inherited from AbstractPlotter
#color, #color_order, #data, #key_color, #palette, #title, #x, #x_label, #y, #y_label
Instance Method Summary collapse
-
#initialize(data: nil, variables: {}, **options, &block) ⇒ BarPlotter
constructor
A new instance of BarPlotter.
Methods included from EstimationSupport
Methods included from RandomSupport
Methods inherited from AbstractPlotter
#inspect, #processed_data, #render, #save, #to_iruby, #to_iruby_mimebundle, #var_levels
Constructor Details
#initialize(data: nil, variables: {}, **options, &block) ⇒ BarPlotter
Returns a new instance of BarPlotter.
7 8 9 10 |
# File 'lib/charty/plotters/bar_plotter.rb', line 7 def initialize(data: nil, variables: {}, **, &block) x, y, color = variables.values_at(:x, :y, :color) super(x, y, color, data: data, **, &block) end |
Instance Attribute Details
#cap_size ⇒ Object
Returns the value of attribute cap_size.
39 40 41 |
# File 'lib/charty/plotters/bar_plotter.rb', line 39 def cap_size @cap_size end |
#error_color ⇒ Object
Returns the value of attribute error_color.
12 13 14 |
# File 'lib/charty/plotters/bar_plotter.rb', line 12 def error_color @error_color end |
#error_width ⇒ Object
Returns the value of attribute error_width.
33 34 35 |
# File 'lib/charty/plotters/bar_plotter.rb', line 33 def error_width @error_width end |
#log ⇒ Object
Returns the value of attribute log.
45 46 47 |
# File 'lib/charty/plotters/bar_plotter.rb', line 45 def log @log end |