Javascript functions that make it easier to build simple graphs with D3.