jyrcija / google-charts-on-rails

Automatically exported from code.google.com/p/google-charts-on-rails
MIT License
0 stars 0 forks source link

Graph does not render in View #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In the view for the page, type:
image_tag(GoogleChart.pie(10,20,40,30).to_url)

What is the expected output? What do you see instead?
The expected output should be the default graph given on the examples page:
http://code.google.com/p/google-charts-on-rails/

What version of the product are you using? On what operating system?
Using latest version as of 1/30/08 on RedHat Linux

Please provide any additional information below.

Original issue reported on code.google.com by peterbat...@gmail.com on 30 Jan 2008 at 6:18

GoogleCodeExporter commented 9 years ago
Hi, 
had the same issue. Figured out that the above mentioned code creates a url with
".png" appended. When I removed the ".png" it worked. For the moment I use it 
like
this (without the view helper "image_tag"):

<%= "<img src='#{GoogleChart.pie(10,20,40,30).to_url}'/>" %>

@braghavan: nice job! thanks! :-)

Original comment by Matthias...@gmail.com on 31 Jan 2008 at 3:04

GoogleCodeExporter commented 9 years ago
Perfect, thanks for posting.

Original comment by peterbat...@gmail.com on 31 Jan 2008 at 3:47

GoogleCodeExporter commented 9 years ago

Original comment by bragha...@gmail.com on 21 Feb 2008 at 8:51

GoogleCodeExporter commented 9 years ago
This is not happening in the Rails 2.x, can you please confirm which version it 
is.
Thanks.

Original comment by bragha...@gmail.com on 21 Feb 2008 at 9:41

GoogleCodeExporter commented 9 years ago
Please re-open the issue if you have issues.

Original comment by bragha...@gmail.com on 21 Feb 2008 at 11:14