views:

1499

answers:

4

I have some data visualization animations I want to do in a webapp I have and am considering different alternatives I have. It will basically just be moving around text strings in a pretty way.

I am using the Mootools framework and the Mootools FX library basically have the stuff i want, but I want to manipulate around 100 text strings, which means each string would need a separate FX object (I think).

The alternative to doing this is coding the entire thing in Processing and use Processing.js to render it to an HTML5 canvas.

Which of these things go easiest on the browser (I don't want the site to be client-side heavy)? Are there any other ways that might be even better?

A: 

I would not adopt for support of the canvas element at this time since only the newest version of most browsers support it. I would wait until support is common, which could take a little while. Keep in mind HTML5 is not a standard yet, and is still subject to change.

You might want to research SVG and see if there is a server side SVG parser where the output could be converted to PNG.

Older versions of most browsers (excluding IE) support canvas.
Eli Grey
The page in question would be on the Admin side of the app, so I can in that way guarantee that all admins will run the latest Safari och FF build.
ique
A: 

Processing is just Java, by the way, so you should be able to just write it in that and display it in an applet.

Noon Silk
He's talking about Processing.js, which is Processing rewritten in JavaScript (if he really wanted to use a plugin, I'd argue that Flash might be a better choice).
Kim Sullivan
A: 

Why not actionscript 3, at this point there is a wider penetration of the flash player than support for html 5.

WillyCornbread
This is true, but Flash seems to be quite crash prone and have always (maybe because I code bad actionscript) consumed a lot of memory and CPU. The page will be displayed continuously for several hours.
ique
+2  A: 

Or use client-side SVG. It should have no problems displaying and manipulating 100 text strings, and is supported in much the same browsers as Canvas is (and IE supports VML, which provides similar functionality).

@austin, Apache Batik is a server-side SVG renderer.

I have found a great JS library to render client-side SVG, so I will end up using that :)Link: http://raphaeljs.com/
ique