I would like to create a visualisation like http://bost.ocks.org/mike/miserables/ . In this implementation, each rectangle is filled with a color and a relevant opacity. To fill a specific rectangle the developer gives either e.g. x=”579.7402597402597″ or y=… and the dimensions of the rectangle.
Do you know or can you guess what the developer uses to dynamically compute x and y for the relevant pair of words in each case?
I apologize if the answer to my question is obvious or if it is embedded in the code and I can’t see it.
Thank you.
Have a look at the source code. The two relevant parts are
and
The coordinates are calculated by passing the the cell index / x attribute of the data to a scale, namely