The best technology to use when generating pictures

I want to generate some picture, graphs to be more specific.
I would like them to render in a webpage.

I figured out that it’s fairly easy to generate graph as pictures using javascript and HTML5 canvas.

But I realized that this might not be a good option, because javascript renders at client’s side and calculating the graph may be complicated.
Also when I want to insert other pictures into such graph, javacript will expect those other pictures somewhere on client’s computer.

So I guess that I should generate the picture before loading the page and then render the page with the picture on it…if there are no mistakes in my assumptions.
And if so, what would be the best way to achieve that? I work with Ruby and rails for the web app.
Thank you!

Source: ruby

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.