marseyes il y a 2 ans
Parent
commit
d388f93723
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  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 322
 		var options = {
323 323
 		    title: '',
324 324
 		    width: 900,
325
+			height: 350,
325 326
 			crosshair: { trigger: 'both', color:'#ddd' },
326 327
 			pointSize: 4,
327 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 336
 	}, 'GET');	
334 337