class Gruff::Line

Here’s how to make a Gruff::Line.

g = Gruff::Line.new
g.title = "A Line Graph"
g.data 'Fries', [20, 23, 19, 8]
g.data 'Hamburgers', [50, 19, 99, 29]
g.write("line.png")

There are also other options described below, such as {#baseline_value}, {#baseline_color}, {#hide_dots=}, and {#hide_lines=}.