my first dynamic d3 generated chart!