Porting api changes to d3 renderer