Comments on: Open Flash Chart II – Bar Graphs with on-click http://pullmonkey.com/2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click/ Fri, 06 Jan 2012 23:49:24 +0000 hourly 1 https://wordpress.org/?v=5.6 By: krace http://pullmonkey.com/2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click/comment-page-1/#comment-18767 Fri, 06 Jan 2012 23:49:24 +0000 /2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click#comment-18767 well, DUH, figures! [doofus_face.png]

I’ve been using an older version of the code. updated from git, things look much better now.

thanks a ton! =)

]]>
By: charlie http://pullmonkey.com/2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click/comment-page-1/#comment-18766 Fri, 06 Jan 2012 23:06:32 +0000 /2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click#comment-18766 In reply to krace.

You’re right, the instance variables all use underscores.
The code here – https://github.com/pullmonkey/open_flash_chart/blob/master/lib/open_flash_chart/base.rb is what converts on_click back to on-click for the JSON that you pointed to.

What JSON do you get as output? Do you see on_click instead of on-click?

]]>
By: krace http://pullmonkey.com/2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click/comment-page-1/#comment-18765 Fri, 06 Jan 2012 22:41:58 +0000 /2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click#comment-18765 thanks a lot for this!

having a bit of a problem here: i’mtrying to get the bar-clicking functionality up in by graph and hitting a snag. in your example, http://pullmonkey.com/projects/open_flash_chart2/bar_clicking, onclick events are named “on-click” (with a dash), and they obviously work (as the example demonstrates). however, lest i’m missing something, dash is not a valid symbol to have in an instance variable. your code sample shows “on_click” (with underscore), however this doesn’t work for me, i.e. the graph displays, but it’s not clickable.

anything i’m missing?

]]>
By: Muni http://pullmonkey.com/2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click/comment-page-1/#comment-15906 Thu, 28 Oct 2010 05:15:14 +0000 /2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click#comment-15906 Thanks for your Help! I have tried that.. However I have couple of questions and posted the same on that page..

Thanks,
Munendra Chevuru (Muni)

]]>
By: charlie http://pullmonkey.com/2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click/comment-page-1/#comment-15889 Wed, 27 Oct 2010 23:18:04 +0000 /2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click#comment-15889 In reply to Muni.

Don’t look at the plugin code, it is all metaprogrammed.
For examples, use what’s on my site here.
A vertical bar graph can be found here.

Or convert the php examples here to ruby.
Horizontal bar graph example can be found here.

]]>
By: Muni http://pullmonkey.com/2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click/comment-page-1/#comment-15859 Wed, 27 Oct 2010 12:29:51 +0000 /2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click#comment-15859 Hello every one,

Thanks for nice plugin for Graphs. Is there any way that I can generate the vertical Bar Graph with this Plugin? I have tried looked at the Plugin code, but helpless.

Can any one help me?

Munendra Chevuru (Muni).

]]>
By: Ahren http://pullmonkey.com/2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click/comment-page-1/#comment-14087 Tue, 21 Sep 2010 13:48:46 +0000 /2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click#comment-14087 I realize this post is a bit dated, but I’m looking for help with an issue.

When I click these chart links (on_click), if the result is a javascript function like you have here, firefox completely locks up. It works fine in internet explorer.

It happens on more than one computer, so it’s not my local firefox. Has anyone experienced this?

]]>
By: dinesh http://pullmonkey.com/2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click/comment-page-1/#comment-5543 Fri, 19 Feb 2010 14:56:00 +0000 /2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click#comment-5543 How i reload new bar chart in ruby side without page redirecting.

]]>
By: On-click Events for Bar Charts in OFC2 | Eric Salczynski http://pullmonkey.com/2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click/comment-page-1/#comment-4312 Sat, 16 Jan 2010 02:48:11 +0000 /2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click#comment-4312 […] And finally, here are some links I’m going to use to brag about my (minor) contribution: – Click Events for (most types of) Bar Charts – Open Flash Chart II – Bar Graphs with on-click […]

]]>
By: Fulatoro http://pullmonkey.com/2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click/comment-page-1/#comment-2724 Sun, 22 Nov 2009 23:47:18 +0000 /2009/01/08/open-flash-chart-ii-bar-graphs-with-on-click#comment-2724 I am having trouble getting the BarStack example to work, I am trying add values as such

val_array = []

l1value.each do |name,value|
val_array << BarStackValue.new(value,colors[name])
end

I am getting the following error on the val_array << line

wrong number of arguments (3 for 1)

I suspect it is happening in the bar_stack.rb, I changed line 16 from

super
to

super args

THank you.

]]>