youtube and facebook d3 graph code