Class: Charty::Plotters::BarPlotter

Inherits:
CategoricalPlotter show all
Defined in:
lib/charty/plotters/bar_plotter.rb

Direct Known Subclasses

CountPlotter

Instance Attribute Summary collapse

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

#random

Attributes inherited from AbstractPlotter

#color, #color_order, #data, #key_color, #palette, #title, #x, #x_label, #y, #y_label

Instance Method Summary collapse

Methods included from EstimationSupport

check_estimator

Methods included from RandomSupport

check_random

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: {}, **options, &block)
  x, y, color = variables.values_at(:x, :y, :color)
  super(x, y, color, data: data, **options, &block)
end

Instance Attribute Details

#cap_sizeObject

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_colorObject

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_widthObject

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

#logObject

Returns the value of attribute log.



45
46
47
# File 'lib/charty/plotters/bar_plotter.rb', line 45

def log
  @log
end