This is the second step of my first attempt to learn canvas. I want to improve a piece a made a few weeks ago about the division of occupations. The d3.js version has so many DOM elements due to all the small bar charts that it is very slow. Therefore, I hope that a canvas version might improve things.
In this block I create a static circle pack layout that only uses D3 for the initialization, scales and such. But the visual is drawn with pure canvas, based on the data supplied by the d3 pack layout
I wrote a more extensive tutorial around what I learned while doing this project in my blog Learnings from a D3.js addict on starting with Canvas in which this can be seen as step 2. See the previous step in which d3.js still played a much bigger role here and the next step that has become a zoomable circle pack (but with a jitter) here
If you want to see the final result, with everything up and running in canvas look here