Piyush with Rails wrote:
> Hello Friends,
Gruff is ruby library fir grnrrating graphs
ChartDirector is one of the library but i think it is not open source
in gruff you can export chart on pdf
Using chartDirector also you can export
you can create graph
This is sammple
write in Helper
def generate_graph
graph = USING GRuff See Documentation of gruff
filename = 'abc.png'
file = Tempfile.new(filename)
file = file.binmode
file.write(graph.to_blob)
file.close
content_tag(:div, image_tag(file.path), :class => "graphs")
end
in dispaly.pdf.erb
<%= generate_graph %>
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---