Comments on: Open Flash Chart II – fully automated http://pullmonkey.com/2009/04/30/open-flash-chart-ii-fully-automated/ Sun, 20 Sep 2009 17:04:57 +0000 hourly 1 https://wordpress.org/?v=5.6 By: Leftblank http://pullmonkey.com/2009/04/30/open-flash-chart-ii-fully-automated/comment-page-1/#comment-1214 Sun, 20 Sep 2009 17:04:57 +0000 /2009/04/30/open-flash-chart-ii-fully-automated#comment-1214 Awesome plugin, however, one think I’m failing to see is how I’d make a graph like the one shown here; http://teethgrinder.co.uk/open-flash-chart-2/x-axis-date.php . Since there isnt much of an API I find it hard to figure out how to build it – could someone perhaps enlighten me here?

]]>
By: Nithin Bekal http://pullmonkey.com/2009/04/30/open-flash-chart-ii-fully-automated/comment-page-1/#comment-1177 Fri, 18 Sep 2009 15:34:50 +0000 /2009/04/30/open-flash-chart-ii-fully-automated#comment-1177 Hi Charlie,

Yes, I was having a problem with installing the OFC II plugin, but I finally managed to get it to work with this:

ruby script/plugin install http://github.com/pullmonkey/open_flash_chart.git/

…with the trailing slash after .git because apparently you need that while installing a plugin on a Windows machine.

Sorry about commenting on the wrong page. I had this page open in another tab and so ended up leaving the comment here, which probably caused you the confusion about what URLs I was talking about. And thanks again for the great plugin. 🙂

]]>
By: charlie http://pullmonkey.com/2009/04/30/open-flash-chart-ii-fully-automated/comment-page-1/#comment-1175 Fri, 18 Sep 2009 14:37:11 +0000 /2009/04/30/open-flash-chart-ii-fully-automated#comment-1175 In reply to Nithin Bekal.

Hey Nithin,

Which urls are you trying? I did a quick check of all the clickable links on the page, they all seem to be fine. Are you having problems with a plugin/install?

]]>
By: Nithin Bekal http://pullmonkey.com/2009/04/30/open-flash-chart-ii-fully-automated/comment-page-1/#comment-1169 Fri, 18 Sep 2009 05:23:44 +0000 /2009/04/30/open-flash-chart-ii-fully-automated#comment-1169 Hey, thanks for creating this great plugin. I’ve tried using the older version of this plugin and it worked great. But when I try installing OFC II, I get a “plugin not found” message for either of the URLs that you’ve given.

Am I doing something wrong there? I used the same procedure for installing the older version and that worked fine.

]]>
By: Harry Seldon http://pullmonkey.com/2009/04/30/open-flash-chart-ii-fully-automated/comment-page-1/#comment-938 Thu, 30 Apr 2009 16:33:00 +0000 /2009/04/30/open-flash-chart-ii-fully-automated#comment-938 Very cool! Thx for this new version of OFC and thx for these explanations.

]]>
By: Kip http://pullmonkey.com/2009/04/30/open-flash-chart-ii-fully-automated/comment-page-1/#comment-939 Thu, 30 Apr 2009 16:33:00 +0000 /2009/04/30/open-flash-chart-ii-fully-automated#comment-939 Charlie, thanks for a very useful plugin. After some messing around I decided I wanted to leverage the ‘get-data’ model of OFC (not just ‘data-file’). This lets me embed the json data in the html output and avoid another request cycle for ofc to fetch the data. Not needed in all situations, but handy in many. My git-patching-fu isn’t great so the very simple addition of one method to open_flash_chart_object.rb OpenFlashChart::Controller is here for anyone interested:

<filter:code attributes=lang="ruby">
def open_flash_chart_embedded(width, height, div_name, json_data, use_swfobject=true, base="/", swf_file_name="open-flash-chart.swf")
<<-HTML
<div id="#{div_name}"></div>
<script type="text/javascript">
swfobject.embedSWF("#{base}#{swf_file_name}", "#{div_name}", "#{width}", "#{height}", "9.0.0", "expressInstall.swf",
{"get-data":"chartData#{div_name}"});

function chartData#{div_name}() {
return "#{json_data.gsub(‘"’,’\"’)}";
}
</script>
HTML
end
</filter:code>

Note this method requires you provide a div_name but it would be trivial to hook it up to the existing div_name generator.

Cheers, –Kip

]]>
By: rob http://pullmonkey.com/2009/04/30/open-flash-chart-ii-fully-automated/comment-page-1/#comment-940 Thu, 30 Apr 2009 16:33:00 +0000 /2009/04/30/open-flash-chart-ii-fully-automated#comment-940 Hey, first off, incredible work on this plugin. I have used it for numerous projects, and I absolutely love it. I cant thank you enough for your tireless work on this project…

I have a question that Id normally email you to ask, but I can’t find your email, so I’m settling for a comment.

I have graphs that occasionally have no data in them, so what Id like to do is display a "NO DATA AVAILABLE" message in the same style as the "LOADING" bubble that appears when the graph first loads….is there any way to achieve this? I’ve been searching high and low for a way to figure it out. Right now, it just display a blank space when no data is available, but Id really like to display a message to the user instead of just a white box.

Again, thanks for your hard work.
Best,
Rob

]]>
By: Rain http://pullmonkey.com/2009/04/30/open-flash-chart-ii-fully-automated/comment-page-1/#comment-941 Thu, 30 Apr 2009 16:33:00 +0000 /2009/04/30/open-flash-chart-ii-fully-automated#comment-941 Hi, Charlie , with test branch plugin installed, I can successfully make my line chart. But there is still an issue that is I CANNOT make the X Axis Labels display?

Can you make X axis labels display? Any suggestions for this?

Thanks for the great plugin!

]]>