Bonus chart - Streamalicious!
Our bonus chart in this chapter is easy; we've already made it!
Go back to main.js
, comment out the last line, and add this one:
westerosChart.init('stack',
'data/GoT-deaths-by-season.json', true);
All we've done is pass true
. This gives us a stream chart, because we set the offset in the last example to d3.stackOffsetWiggle
. Kind of cool looking, huh?
