// Assuming that the data was normalized on [0:1], center it:
double[] trans = new double[dim];
for(int i = 0; i < dim; i++) {
trans[i] = -.5;
}
proj.addTranslation(new Vector(trans));
// mirror on the y axis, since the SVG coordinate system is screen
// coordinates (y = down) and not mathematical coordinates (y = up)
proj.addAxisReflection(2);
// scale it up
proj.addScaling(SCALE);