Create graphs with Javascript using d3