Comments on: Open Flash Chart Graphing for Ruby on Rails – Updates http://pullmonkey.com/2008/04/05/open-flash-chart-graphing-for-ruby-on-rails-updates/ Sun, 30 Aug 2009 04:39:04 +0000 hourly 1 https://wordpress.org/?v=5.6 By: Andrew Kuklewicz http://pullmonkey.com/2008/04/05/open-flash-chart-graphing-for-ruby-on-rails-updates/comment-page-1/#comment-377 Sat, 05 Apr 2008 23:25:00 +0000 /2008/07/25/open-flash-chart-graphing-for-ruby-on-rails-updates#comment-377 I’ve been using the plugin, and found one problem with it.
I wanted to use js to cause the flash chart to reload data, but in order to do so, I need the id of the flash obj. There is no way currently to get this that I could find, as the _ofc method throws a seq # in as part of the id, so I changed these methods a bit to add a final param to pass in the id. I did it as an extra param, probably would be more extensible to pass in a hash of options, and have one of them be the id of the flash obj. What do you think, is there a better way to do this?
-Andrew

]]>
By: charlie http://pullmonkey.com/2008/04/05/open-flash-chart-graphing-for-ruby-on-rails-updates/comment-page-1/#comment-378 Sat, 05 Apr 2008 23:25:00 +0000 /2008/07/25/open-flash-chart-graphing-for-ruby-on-rails-updates#comment-378 @Andrew – I think I see what you are saying. You want to reload the data that is in the div, where the div has an id like my_chart and some string? I think a solution would be to give the div a css class, then you can use prototype’s css selector like this $$(‘.ofc_chart’) to get all the open flash chart divs on the page and you can reload each one or get the id of each one and go from there. Thoughts?

]]>
By: Scott Derrick http://pullmonkey.com/2008/04/05/open-flash-chart-graphing-for-ruby-on-rails-updates/comment-page-1/#comment-379 Sat, 05 Apr 2008 23:25:00 +0000 /2008/07/25/open-flash-chart-graphing-for-ruby-on-rails-updates#comment-379 Can the line charts be oriented vertically?

Thanks, Scott

]]>
By: charlie http://pullmonkey.com/2008/04/05/open-flash-chart-graphing-for-ruby-on-rails-updates/comment-page-1/#comment-380 Sat, 05 Apr 2008 23:25:00 +0000 /2008/07/25/open-flash-chart-graphing-for-ruby-on-rails-updates#comment-380 @Scott – There is probably a trick to it, but not anything off the top of my head. I am using the swf from http://teethgrinder.co.uk/open-flash-chart/, and from what I can tell, it is not supported. But again, maybe there is a way to rotate the flash after the fact or some other trick?

]]>