04 Feb
Open Flash Chart Plugin for Ruby on Rails
Update: Version 2 of Open Flash Chart is available. Examples for version 2 are here.
I just finished converting version 1.9.7 of Open Flash Chart over to ruby, for use with rails.
Check out what I can do now 🙂 I can customize my tooltips:
Extra Tool Tips
More examples can be found on my Open Flash Chart Projects page.
Don't forget to check out the original - http://teethgrinder.co.uk/open-flash-chart/.
108 Responses
to “Open Flash Chart Plugin for Ruby on Rails”
Sorry, comments for this entry are closed at this time.
@Victor – You need to include the javascript file (swfobject.js) in your view.html.erb or in your layout’s head, that is why SWFObject is not defined …. Also, I recommend you look at using the new version (version 2 from my github) of open flash chart, here are some instructions – http://pullmonkey.com/2008/7/23/open-flash-chart-ii-plugin-for-ruby-on-rails-ofc2
More examples – http://pullmonkey.com/projects/open_flash_chart2/
@charlie – i have include the javascript file in the layout on redmine (<script type="text/javascript" src="/javascripts/swfobject.js"></script>)
and the problem are always here
My view are in *.rhtml … it’s perhaps a probleme…
also i will install your new version on this plugin.
I’m dispointed if i can’t using it because i fing your plugin are very pleasant and ergonomic
I saw the recommendation to Victor in the version 2 thread about using the older version after encountering error parsing the JSON. I’m working with rails 1.2 and I am not able to access the svn.pullmonkey.com repository, the domain name does not resolve. Please let me know if there is still a hosted copy, if not, could you add it to the git project as legacy code? Otherwise, is there any intention to support rails 1.2?
I have the same problem with a blank screen sometime on IE only. Sometime it shows the chart, while other time it does. Refresh sometime brings out the chart, but not always. Any pointer will be appreciated.
@Noah – I just switched from dreamhost to slicehost and that subdomain went away in dns, so had to get that all set up. So anyway, the svn is back.
@pdx3d – regular or javascript does not work in IE? Next, do any of the <a href="http://pullmonkey.com/projects/open_flash_chart2">pullmonkey.com graphs</a> show up in your IE?
Charlie, thanks for your prompt response.
Yes, regular javascript works. In fact, OFC2 works sometime, but not always. I am running on windows under ROR with webbrick(and tried mongrel as well). FireFox and Chrome all works fine, but not IE. Use the same IE, I can see this site fine. When the chart is not shown, I can still see the html source showing the tags for all the elements the same as when it works. Just no chart is actually showing…
I forgot to mention: I really like what I see when it works.
@pdx3d – Ok, look in the rails logs and see if the swfobject is making the ajax request to the action you setup. Also, what version of rails are you using? What version of IE? I need to reproduce the problem to fix it 🙂 so the more details the better. Thanks for your time and patience.
Charlie,
I was not using the ajax version, but rather :
@graph= open_flash_chart_object(320,240,"/ofc2/graph_code")
under IE7: 7.0.6001.18000.
I just swtiched to the ajax version moments ago. It works beautifully! Thanks again.