block by nstrayer 37a503dd1db369a8f7e3ce21757e19ee

Reusable dotplots.

Full Screen

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.

index.html

colorbrewer.min.js

dotplots.js