code: function transform(g,grow) {
  
      var scales = vars.types[vars.type.value].scale,
          scale = 1;
      if (scales) {
        if (validObject[scales] && vars.shape.value in scales) {
          scale = scales[vars.shape.value];
        }
        else if (typeof scales == "function") {
          scale = scales(vars, vars.shape.value);
        }
        else if (typeof scales == "number") {
          scale = scales;
        }
      }
  
      scale = grow ? scale : 1;
      g.attr("transform", function(d){
  
        if (["line", "area", "coordinates"].indexOf(shape) < 0) {
            var x = d.d3plus.x || 0, y = d.d3plus.y || 0;
            return "translate("+x+","+y+")scale("+scale+")";
        }
        else {
          return "scale("+scale+")";
        }
  
      });
  
    }
docs: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Transforms the positions and scale of each group. ----------------------------------------------------------------------------