require "alone" require "al_graph" class GraphSampleController < AlController def action_index() AlTemplate.run("index.rhtml") end def action_graph_sample() ydata1 = [ 0.1, 1, 10, 100 ] graph = AlGraph.new graph.y_axis.logarithmic() graph.add_data_line(ydata1) graph.draw end end