Displaying 1 result from an estimated 1 matches for "set_x_axis".
2011 Feb 11
0
Hbar color - openflash chart
...)
hbar = HBar.new
hbar.values = [HBarValue.new(0,10),HBarValue.new(0,20)]
hbar.colour = ''#FF8000'' # this works for the two bars
chart = OpenFlashChart.new
chart.set_title(title)
chart.add_element(hbar)
x = XAxis.new
x.set_offset(false)
chart.set_x_axis(x)
y = YAxis.new
y.set_offset(true)
y.set_labels(["Yes","No"])
chart.set_y_axis(y)
render :text => chart.to_s
end
Please help !!
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Group...