score:0

Accepted answer

the answer on this question helped me to solve my problem: since .select() propagate the data to the selected elements, i just have to get rid of the selection:

var daterect = d3.select(this)
                    .append("rect")
                    .attr('height', desiredheight) 
                    .attr('width', desiredwidthfromticktotick) 
                    .attr('x', offsettolastrectingroup);

     group.append(function() {
        return daterect.node();
     });

Related Query