Adds graph by d3