lib/prawn/graph/extension.rb in prawn-graph-1.0.4 vs lib/prawn/graph/extension.rb in prawn-graph-1.0.5
- old
+ new
@@ -11,9 +11,10 @@
# `:width` - The overall width of the graph to be drawn. `<Integer>`
# `:height` - The overall height of the graph to be drawn. `<Integer>`
# `:at` - The point from where the graph will be drawn. `[<Integer>x, <Integer>y]`
# `:title` - The title for this chart. Must be a string. `<String>`
# `:series_key` - Should we render the key to series in this chart? `<Boolean>`
+ # `:theme ` - An instance of the theme to be used for styling this graph. `<Prawn::Graph::Theme>`
#
def graph(series, options = {}, &block)
canvas = Prawn::Graph::ChartComponents::Canvas.new(series, self, options, &block)
canvas.draw
{warnings: [], width: self.bounds.width, height: self.bounds.height}
\ No newline at end of file