Made a separate file as a sandbox for my charts. The makeSqareChart function should work if you just copy and paste it along with makeCube.