Hi,
I am using "gruff" lib for creating the graphs.
I have got the success to create the graph, but my problem is I don't
want to store it, I want that they should be displyed on the browser it
self.
I have tried this:-
"
send_data(g.to_blob, :disposition => 'inline', :type => 'image/png',
:filename => "arbitaryfilename.png") "
By using this it just shows that graph.
I want to show the 5 graphs a a time.
Like:- as objects
I am going to create an object of the grohpa created and on vie I am
going to iterate that and show it one by one.
Can anyone tell me how should Iacehive this?
Hi,
I am using "gruff" lib for creating the graphs.
I have got the success to create the graph, but my problem is I don't
want to store it, I want that they should be displyed on the browser it
self.
I have tried this:-
"
send_data(g.to_blob, :disposition => 'inline', :type => 'image/png',
:filename => "arbitaryfilename.png") "
By using this it just shows that graph.
I want to show the 5 graphs a a time.
Like:- as objects
I am going to create an object of the grohpa created and on vie I am
going to iterate that and show it one by one.
Can anyone tell me how should Iacehive this?
You're already doing the right thing, but instead of sending user to
the url of the graph itself, you need to send them to a page where the
view has a number of img tags, for each one the src should be the url
for one of your image generating actions.
Hi,
I am using "gruff" lib for creating the graphs.
I have got the success to create the graph, but my problem is I don't
want to store it, I want that they should be displyed on the browser it
self.
I have tried this:-
"
send_data(g.to_blob, :disposition => 'inline', :type => 'image/png',
:filename => "arbitaryfilename.png") "
By using this it just shows that graph.
I want to show the 5 graphs a a time.
Like:- as objects
I am going to create an object of the grohpa created and on vie I am
going to iterate that and show it one by one.
Can anyone tell me how should Iacehive this?