add d3 code, non-working rectangles