sample code error

0 views
Skip to first unread message

jeannie

unread,
Dec 30, 2008, 2:44:20 AM12/30/08
to Open Flash Chart Lazy
OK. Still trying here. Thanks for listening.

Now, I'm getting the following type error using the inline data Pie
chart example:

TypeError in Testopenflash#index

wrong argument type Hash (expected Data)

Extracted source (around line #2):

2: <%= inline_graph(@pie_chart) %>

My view code:
<%= inline_graph(@pie_chart) %>

My controller code:

def index
@pie_chart = OpenFlashChartLazy::Pie.new("Channels")
channels=OpenFlashChartLazy::Serie.new([["Wealth",34],["Financial",
45]])
@pie_chart.add_serie(channels)
end

Help?

Pedro Visintin

unread,
Dec 30, 2008, 6:02:41 AM12/30/08
to open-flash...@googlegroups.com
Hi Jeannie

I'm in a bus traveling from Arg to Chile, Ill will check your problem but my internet connection will fail, so please be patient

thx

P
--
Pedro   Visintin . S o f  t w a r e   A r c h i t e c t
http://www.pedrovisintin.com

Ruby On Rails Argentina. http://blogs.onrails.com.ar

Personal page:
http://www.p-e-t-e-r-p-u-n-k.com.ar

"Todo descontento por aquello que no tenemos parece provenir solamente de nuestra falta de gratitud por aquello que tenemos"

Pedro Visintin

unread,
Dec 30, 2008, 6:21:34 AM12/30/08
to open-flash...@googlegroups.com
I tested it, the inline_graph on master is not working ok, so for inline graph use compatibility_improved branch will be merged soon in master

P

On Tue, Dec 30, 2008 at 4:44 AM, jeannie <jean...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages