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=[], ={}) plot_to_image(data, ).to_blob end |