wrappers around d3 to create charts