Sample code snippet for gruff bar drawing

Do anyone has a code snippet showing how to define/create a bar chart
using
gruff?

Thanks

Victor

Victor R. wrote:

Do anyone has a code snippet showing how to define/create a bar chart
using
gruff?

Thanks

Victor

A brief contrived example:

require 'gruff'
g = Gruff::Bar.new
g.title = 'Widget Sales 2008'
g.data('Number of Widgets Sold', my_values_array)
g.minimum_value = 0
g.maximum_value = 10000
g.marker_count = 10
g.labels = my_labels_hash
g.write('widget_sales.jpg')

David