Example tweaked from original example by Scott Murray.
use div, class & id to layout page with HTML
use d3.select, .node().clientWidth to ensure svg width is consistent with css
use d3.select to append svg to correct chartContainer (id), ids have to be unique
any d3 javascript will add its output underneath whatever is already inside that div i.e. after
dynamically change sort button input
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js