module Nyaplot::Diagrams::Scatter
Public Instance Methods
process_data(df, labels)
click to toggle source
# File lib/nyaplot/diagram.rb, line 177 def process_data(df, labels) label_x = labels[0] label_y = labels[1] x(label_x) y(label_y) @xrange = [df[label_x].to_a.min, df[label_x].to_a.max] @yrange = [df[label_y].to_a.min, df[label_y].to_a.max] end
tooltips(labels)
click to toggle source
# File lib/nyaplot/diagram.rb, line 173 def tooltips(labels) tooltip_contents((labels.is_a?(Symbol) ? [labels] : labels)) end
zoom?()
click to toggle source
# File lib/nyaplot/diagram.rb, line 186 def zoom? true end