var test = new Vizz("res", "#03afcc"); var d = []; test.color = "#e91e63"; document.getElementById('vizz').style.background = '#910000'; $.doTimeout('someid', 100, function ( ) { for (var i = 0; i < 10; i++) { d[i] = randomInteger(0, 10); } test.mode_1(d, 125, 125, true, 'tri', 5); return true; }, true);