new d3 version; add embed to chart directly