浏览代码

대시보드

marseyes 2 年之前
父节点
当前提交
d388f93723
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/main/webapp/js/app/main.js

+ 5 - 2
src/main/webapp/js/app/main.js

@@ -322,13 +322,16 @@ function drawLine() {
322
 		var options = {
322
 		var options = {
323
 		    title: '',
323
 		    title: '',
324
 		    width: 900,
324
 		    width: 900,
325
+			height: 350,
325
 			crosshair: { trigger: 'both', color:'#ddd' },
326
 			crosshair: { trigger: 'both', color:'#ddd' },
326
 			pointSize: 4,
327
 			pointSize: 4,
327
 		    legend: { position: 'top' }
328
 		    legend: { position: 'top' }
328
 		};
329
 		};
329
 		
330
 		
330
-		var chart = new google.visualization.LineChart(document.getElementById('ITP_SAFE_STCK_GRAPH'));		
331
-		chart.draw(data, options);
331
+		setTimeout(function () {
332
+		    var chart = new google.visualization.LineChart(document.getElementById('ITP_SAFE_STCK_GRAPH'));		
333
+			chart.draw(data, options);
334
+		}, 300);
332
 		
335
 		
333
 	}, 'GET');	
336
 	}, 'GET');	
334
   
337