diff modules/web_view/graph.html @ 26:d7856a645ea8

new db for techintern for testing purposes
author sean
date Fri, 14 Aug 2015 11:32:41 +0200
parents 05e5441c5160
children
line wrap: on
line diff
--- a/modules/web_view/graph.html	Fri Aug 14 00:31:48 2015 +0200
+++ b/modules/web_view/graph.html	Fri Aug 14 11:32:41 2015 +0200
@@ -21,7 +21,7 @@
 			fill: none;
 			stroke: lightgrey;
 			/*opacity: 0.7;*/
-			/*stroke-width: 1px;*/
+			stroke-width: 1px;
 	}
 
 	.y.axis path {
@@ -93,13 +93,13 @@
 
 <script type="text/javascript">
 
+	var d3jsInjectionTarget="X";
+
 	// window.onresize = function(){
-	// 	document.getElementsByClassName("chart")[0].innerHTML = "";
+	// 	document.getElementById(d3jsInjectionTarget).innerHTML = "";
 	// 	makeChart();
 	// };
 
-	var d3jsInjectionTarget="X";
-
 	var critical=[];
 	var urgent=[];
 	var bug=[];
@@ -107,50 +107,11 @@
 	var wish=[];
 	var timestamp=[];
 
-	// var critical=[
-	// 		{points: 4},
-	// 		{points: 12},
-	// 		{points: 8},
-	// 		{points: 2}
-	// 	]
-	//
-	// var urgent=[
-	// 		{points: 3},
-	// 		{points: 24},
-	// 		{points: 17},
-	// 		{points: 19}
-	// 	]
-	//
-	// var bug=[
-	// 		{points: 10},
-	// 		{points: 2},
-	// 		{points: 2},
-	// 		{points: 12}
-	// 	]
-	//
-	// var feature=[
-	// 		{points: 4},
-	// 		{points: 21},
-	// 		{points: 12},
-	// 		{points: 4}
-	// 	]
-	//
-	// var wish=[
-	// 		{points: 22},
-	// 		{points: 18},
-	// 		{points: 32},
-	// 		{points: 10}
-	// 	]
-	//
-	//
-	// var timestamp=[
-	// 		{date : new Date('2015-06-30T12:36:47')},
-	// 		{date : new Date('2015-07-01T12:37:26')},
-	// 		{date : new Date('2015-07-02T12:38:26')},
-	// 		{date : new Date('2015-07-03T12:39:26')}
-	// 	]
-
 	document.addEventListener("DOMContentLoaded", function(event) {
+		try {
+			document.getElementById(d3jsInjectionTarget).getElementsByClassName("svg")[0].innerHTML = ""
+		} catch (e) {
+		}
 		makeChart();
 	});
 
@@ -311,7 +272,7 @@
 		var xAxis = d3.svg.axis()
 			.scale(x)
 			.orient("bottom")
-			.ticks(limitDatesOnXAxis(4))
+			.ticks(limitDatesOnXAxis(10))
 			.tickFormat(d3.time.format("%d.%m"));
 
 		var yAxis = d3.svg.axis()
@@ -401,6 +362,6 @@
 
 		// makeLegend(svg, width);
 	}
-
+	// makeChart();
 
 </script>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)