All examples By author By category About

tomcardoso

Reusable waffle charts

Reusable waffle charts

Basic waffle charts using Mike Bostock's [http://bost.ocks.org/mike/chart/](reusable charts) convention. Waffles are configurable, as you can see below:

var waffle = new WaffleChart()
  .selector(".chart")
  .data(data)
  .useWidth(false)
  .label("Value of producers' sales in 2013, in thousands of dollars")
  .size(12)
  .gap(2)
  .rows(20)
  .columns(60)
  .rounded(true)();

Each configuration parameter is as follows: