My second visualization using the coding style from @ejb ‘s blog post “A better way to structure D3 code”.
This is a dotplot that can be updated and resized easily.
The data it takes is in the form of data = [{"val": 4, "group": "a"}, ...]
.
Also see my first visualization using @ejb’s style: the histogram.
This is part of my larger project of making a d3/r library for dynamic and interactive basic statistical plots.