function clearLine(){ //http://www.html5canvastutorials.com/advanced/html5-clear-canvas/ var canv; for(var i = 0; i < SymexChartGlobals.tickers_qty; i++ ){ canv = document.getElementById('price_' + i); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); canv = document.getElementById('price_SAR'); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); } if(SymexChartGlobals.display_BOL == 1){ canv = document.getElementById('price_BOL'); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); canv = document.getElementById('price_BOL_nua'); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); canv = document.getElementById('price_SUP'); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); canv = document.getElementById('price_INF'); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); } if(SymexChartGlobals.display_STR == 1){ canv = document.getElementById('price_STR'); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); } if(SymexChartGlobals.display_KAMA == 1){ canv = document.getElementById('price_KAMA'); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); } if(SymexChartGlobals.ichi == 1){ canv = document.getElementById('price_TENKAN'); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); canv = document.getElementById('price_KIJUN'); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); canv = document.getElementById('price_CHIKOU'); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); canv = document.getElementById('price_SENKOUA'); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); canv = document.getElementById('price_SENKOUB'); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); canv = document.getElementById('price_SENKOUSPAN'); c = canv.getContext("2d"); c.clearRect(0, 0, canv.width, canv.height); c.beginPath(); } for(var a=0,b=1;a need in case no data for selected period SymexChartGlobals.stepX = 0; //hide precission cell jQuery('#precCell').hide(); jQuery('#precCellPointer').hide(); for(var a=0,b=1;a