views:

42

answers:

2

I have a number of items with different values. I'd like to represent each item as a square with its size corresponding to its value, where each square is a component of a larger square. All the squares of different sizes fit together to make a larger, perfect square.

Is it possible to do something like this with HTML/CSS? Does anyone know of any resources I that might get me started with the right techniques?

Or would this be better suited to JavaScript or something else?

A: 

Take a look at ted.com and see how they're doing something similar. It's pretty cool.

Diodeus
That is a really cool effect, though I'm 99% sure they do that with Flash.
Ender
I grant you its awesome, but it's also flash and we have no idea to the process of doing it (as well as it's not a perfect square when complete loading).
josh.trow
@Ender + I will add that 1%. It is flash.
Jason
+2  A: 

Sounds like a treemap. There seems to be a number of Javascript libraries for accomplishing this kind of visualization, for example the Javascript InfoVis Toolkit or this jQuery plugin.

Anders Fjeldstad