class GraphSampleController < AlController def action_index() AlTemplate.run("index.rhtml") end def action_graph_sample() ydata1 = [5, 3, 6, 3, 2, 5, 6] ydata2 = [0, 1, 4, 10, 9, 13, 3] graph = AlGraph.new graph.add_data_bar(ydata1, "bar1") graph.add_data_bar(ydata2, "bar2") graph.draw end end