Topic: Open flash chart problem

Hi,

I'm having a problem with the open flash chart plugin for rails.
Ive been following all the tutorials I can find and none of them are working? even the basic one here http://pullmonkey.com/projects/open_flash_chart2 that i'm trying at the moment.

i have this in my controller:

def graph
    title = Title.new("MY TITLE")
    bar = BarGlass.new
    bar.set_values([1,2,3,4,5,6,7,8,9])
    chart = OpenFlashChart.new
    chart.set_title(title)
    chart.add_element(bar)
    render :text => chart.to_s

   end
  def appliances
    @graph = open_flash_chart_object(600,300, graph_path(), '/device_datas/graph')     
  end

This in the appliances view:

<%= @graph %>

I have also linked the javascript in the head of the layout.

When i load the page, an empty graph shows up... any ideas?
thanks in advance