about summary refs log tree commit diff
path: root/sourcecodes/network_layout_evd_2_example.php
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/network_layout_evd_2_example.php')
-rw-r--r--sourcecodes/network_layout_evd_2_example.php21
1 files changed, 5 insertions, 16 deletions
diff --git a/sourcecodes/network_layout_evd_2_example.php b/sourcecodes/network_layout_evd_2_example.php
index 030d2c3a..d474b533 100644
--- a/sourcecodes/network_layout_evd_2_example.php
+++ b/sourcecodes/network_layout_evd_2_example.php
@@ -1,5 +1,5 @@
 <?php 
-include("structuremap.php");
+  //include("structuremap.php");
 
 
 function levelmap($inx,$name,$mapdata)
@@ -500,7 +500,6 @@ if($evd==-9999)
   for($j=0;$j<$node_type-1;$j++) 
   {     
        $val1=trim($data_read[$s_i][$c_i]);
-      // $val1=map($name,$val1);
        $c_i++;
        $val2=trim($data_read[$s_i][$c_i]);
        $c_i++;
@@ -515,7 +514,6 @@ if($evd==-9999)
   if($j==$node_type-1)
   {
        $val1=trim($data_read[$s_i][$c_i]);
-       // $val1=map($name,$val1);
        $c_i++;
        $val2=trim($data_read[$s_i][$c_i]);
        $c_i++;
@@ -600,7 +598,7 @@ else
              }
          ?>  
 
-        var chart = new google.visualization.BarChart(document.getElementById('<?php print($name);?>'));
+        var chart = new google.visualization.ColumnChart(document.getElementById('<?php print($name);?>'));
         function selectHandler() {
           var selectedItem = chart.getSelection()[0];
           if (selectedItem) {
@@ -610,16 +608,13 @@ else
             
             window.location.href = "add_evd_example.php?name=" + cnode + "&evidence=" + s + "&My_key=" + keyv;
            
-
-  
-              //alert('The user selected ' + topping + topname);
           }
         } 
          chart.draw(data,
                  {title:"<?php print($named);?>", titleTextStyle: {fontSize: <?php print($font);?>},
                   width:<?php print($width);?>, height:<?php print($height);?>,
-                  vAxis: {textStyle: {fontSize:<?php print($font);?>}},
-		    hAxis: {minValue: 0, maxValue: 1, gridlines: {count: 3}}, legend: {position: 'none'},
+		    vAxis: {textStyle: {fontSize:9},minValue:0,maxValue:1},
+		    hAxis: {textStyle: {fontSize:11}}, legend: {position: 'none'},
                   backgroundColor: {stroke: '<?php print($bcolor);?>', strokeWidth: 5}}
             );
         google.visualization.events.addListener(chart, 'select', selectHandler);  
@@ -653,7 +648,6 @@ if($evd==-9999)
   for($j=0;$j<100;$j++) 
   {
        $val1=trim($data_read[$s_i][$c_i]);
-       //$val1=map($name,$val1,$keyval);
        $c_i++;
        $val2=trim($data_read[$s_i][$c_i]);
        $c_i++;         
@@ -670,8 +664,6 @@ if($evd==-9999)
   if($j==100)
   {
         $val1=trim($data_read[$s_i][$c_i]);
-	//$val1=map($name,$val1,$keyval);
-
        $c_i++;
        $val2=trim($data_read[$s_i][$c_i]);
        $c_i++;
@@ -687,7 +679,6 @@ if($evd==-9999)
 }
 else
 {
-  //$evd=map($name,$evd,$keyval);
     $evduse=$evd;
 ?>
   var data = google.visualization.arrayToDataTable([
@@ -700,7 +691,6 @@ else
   for($j=0;$j<100;$j++) 
   {     
        $val1_old=trim($data_read_old[$s_i_old][$c_i_old]);
-       //$val1_old=map($name,$val1_old,$keyval);
 
        $c_i_old++;
        $val2_old=trim($data_read_old[$s_i_old][$c_i_old]);
@@ -723,7 +713,6 @@ else
   if($j==100)
   {
        $val1_old=trim($data_read_old[$s_i_old][$c_i_old]);
-       //$val1_old=map($name,$val1_old,$keyval);
        $c_i_old++;
        $val2_old=trim($data_read_old[$s_i_old][$c_i_old]);
        $c_i_old++;
@@ -772,7 +761,7 @@ else
 			legend: {position: 'none'},
                   width:<?php print($width);?>, height:<?php print($height);?>,
 		  hAxis: {gridlines: {count: 4}, textStyle: {fontSize: 9}, viewWindowMode: 'maximized'},
-		    vAxis: {maxValue: 1, minValue: 0,viewWindow: {min:0}, gridlines: {count:5}, textStyle: {fontSize: 9}},
+		    vAxis: {maxValue: 0.5, minValue: 0,viewWindow: {min:0}, gridlines: {count:5}, textStyle: {fontSize: 9}},
 		    chartArea:{left:30,top:25,right:8,bottom:25},
                   backgroundColor: {stroke: '<?php print($bcolor);?>', strokeWidth: 5}}
             );