about summary refs log tree commit diff
path: root/sourcecodes/network_layout_inv_example.php
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/network_layout_inv_example.php')
-rw-r--r--sourcecodes/network_layout_inv_example.php18
1 files changed, 6 insertions, 12 deletions
diff --git a/sourcecodes/network_layout_inv_example.php b/sourcecodes/network_layout_inv_example.php
index 04543523..24801cf0 100644
--- a/sourcecodes/network_layout_inv_example.php
+++ b/sourcecodes/network_layout_inv_example.php
@@ -1,5 +1,5 @@
 <?php 
-include("structuremap.php");
+  //include("structuremap.php");
 
 function levelmap($inx,$name,$mapdata)
 {
@@ -384,7 +384,7 @@ for($i=0;$i<$nnode;$i++)
       
       var cnode="<?php print($name); ?>";
        var keyv="<?php print($keyval);?>";  
-        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) {
@@ -393,17 +393,13 @@ for($i=0;$i<$nnode;$i++)
             var s = window.prompt('Selected evidence ' + topping + ' for ' + cnode + '. Enter new evidence ', topping );
            
             window.location.href = "add_inv_example.php?name=" + cnode + "&evidence=" + s + "&My_key=" + keyv;
-           
-
-  
-              //alert('The user selected ' + topping + topname);
-          }
+            }
         } 
          chart.draw(data,
                  {title:"<?php print($name);?>", 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'},
+                  hAxis: {textStyle: {fontSize:11}},
+		    vAxis: {minValue: 0, maxValue: 1, textStyle: {fontSize: 9}}, legend: {position: 'none'},
                   backgroundColor: {stroke: 'black', strokeWidth: 5}}
             );
         google.visualization.events.addListener(chart, 'select', selectHandler);  
@@ -423,7 +419,6 @@ for($i=0;$i<$nnode;$i++)
   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]);
@@ -437,7 +432,6 @@ for($i=0;$i<$nnode;$i++)
   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]);
@@ -471,7 +465,7 @@ for($i=0;$i<$nnode;$i++)
 			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: 'black', strokeWidth: 5}}
             );