var test = new Vizz("res", "#03afcc"); var d = []; test.color = "#3f51b5"; document.getElementById('vizz').style.background = '#009688'; $.doTimeout('someid', 100, function ( ) { for (var i = 0; i < 10; i++) { d[i] = randomInteger(-100,100); } test.mode_3(d, 50, 1, false, 10, col); return true; }, true);