I\'ve appended an svg container inside a g element and then appended a rect. I can transform and translate the g element into position which also positions the svg and rect