How do you have the plugin installed and are you using the latest from github? Need to make sure the init.rb file is being run.
]]>swfobject.embedSWF(“/open-flash-chart.swf”, “flash_content_JGR046at”, “600”, “300”, “9.0.0”, “expressInstall.swf”,{“data-file”:”%2Fdashboard%2Fgraph_code”});
Can not figure it out why?
any help in highly appreciated.
— class DashboardController chart.to_s
— end
–end
and here is the code in the view :
role:
]]>here is the code in the view which is named “dashboard_visits.html”:
========== Code in view page “dashboard_visits.html”==============
role:
=====================================================
but in the webpage I’m getting this line without any chart!!!
dashboard_visits
role: ALFP staff
swfobject.embedSWF(“/open-flash-chart.swf”, “flash_content_bQv0Ai8x”, “600”, “300”, “9.0.0”, “expressInstall.swf”,{“data-file”:”%2Fdashboard%2Fgraph_code”});
would you please help me to fix it!
any help is highly appreciated.
eli.
]]>The link you provided is an OFC version 1 example:
http://pullmonkey.com/projects/open_flash_chart/view_source_code/one
For 2.0 examples, start here:
http://pullmonkey.com/projects/open_flash_chart2/
I managed to get the barchart example working. But i cannot seem to get any of the other examples working.
http://pullmonkey.com/projects/open_flash_chart/view_source_code/one
I dont have a massive knowledge of RoR, the error message im on the page that is meant to be displaying the json.
uninitialized constant Graph
Which is assume is the controller not being able to find the function. What would i do to correct this?
]]>I believe its because in Rails 3, the strings are HTML encoded by default. So, I change the line in the view from:
to
Well, this only parially works as the url parameter in open_flash_chart_object() is encoded as well. I’ve tried to get around it using raw, but to no avail.
Anyone figure this out?
]]>