Method: Charty::Plotters::HistogramPlotter#univariate_variable

Defined in:
lib/charty/plotters/histogram_plotter.rb

#univariate_variableObject



8
9
10
11
12
13
# File 'lib/charty/plotters/histogram_plotter.rb', line 8

def univariate_variable
  unless univariate?
    raise TypeError, "This is not a univariate plot"
  end
  ([:x, :y] & self.variables.keys)[0]
end