start(); function start() { var boxRings = [ {radius: 70 * 1.4 , width: 16, speed: 10e-2}, {radius: 70 * 1.5 , width: 16, speed: -10e-2}, {radius: 60 * 1.6 , width: 14, speed: 8e-2}, {radius: 60 * 1.7 , width: 14, speed: -8e-2}, {radius: 50 * 1.8 , width: 12, speed: -6e-2}, {radius: 50 * 1.9 , width: 12, speed: 6e-2}, {radius: 40 * 2 , width: 10, speed: -4e-2}, {radius: 40 * 2.1, width: 10, speed: 4e-2}, {radius: 30 * 2.2, width: 8, speed: -3e-2}, {radius: 30 * 2.3, width: 8, speed: 3e-2}, {radius: 20 * 2.4, width: 6, speed: -3e-2}, {radius: 20 * 2.5, width: 6, speed: -2e-2}, {radius: 10 * 2.6, width:4, speed: 2e-2}, {radius: 10 * 2.7, width:4, speed: -12e-2}, {radius: 5 * 2.8, width:2, speed: 12e-2}, {radius: 5 * 2.9, width:2, speed: 10e-2} ]; console.log(boxRings) var mc = bargraph() .boxRings(boxRings) .width(500) .height(500); //page positioning var mc1 = bargraph() .boxRings(boxRings) .width(800) .height(400); mc1.render(); }