Method: Sparklines.plot

Defined in:
lib/sparklines.rb

.plot(data = [], options = {}) ⇒ Object

Does the actual plotting of the graph. Calls the appropriate subclass based on the :type argument. Defaults to ‘smooth’.

Returns a blob.



139
140
141
# File 'lib/sparklines.rb', line 139

def plot(data=[], options={})
  plot_to_image(data, options).to_blob
end