fixed up chart output as it was printed in reverse