shifts added and tested
d3 shift plot function