diff options
| author | ziejd2 | 2018-04-25 16:43:19 -0500 |
|---|---|---|
| committer | ziejd2 | 2018-04-25 16:43:19 -0500 |
| commit | 74b673ba4a706085201a5610b938ff98f08f641d (patch) | |
| tree | cb39006ea1a39499e00dbbb0e0097087a4567031 /sourcecodes/network_layout_evd.php | |
| parent | a781cb1ff2e7ae6de0f686bd02cd279261485b1e (diff) | |
| download | BNW-74b673ba4a706085201a5610b938ff98f08f641d.tar.gz | |
Bug fixes, code comments, and minor changes
Diffstat (limited to 'sourcecodes/network_layout_evd.php')
| -rw-r--r-- | sourcecodes/network_layout_evd.php | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sourcecodes/network_layout_evd.php b/sourcecodes/network_layout_evd.php index 09554624..27e4fb06 100644 --- a/sourcecodes/network_layout_evd.php +++ b/sourcecodes/network_layout_evd.php @@ -317,7 +317,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) { @@ -326,17 +326,13 @@ for($i=0;$i<$nnode;$i++) var s = window.prompt('Selected evidence ' + topping + ' for ' + cnode + '. Enter new evidence ', topping ); window.location.href = "add_evd.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'}, + vAxis: {textStyle: {fontSize:9},minValue: 0, maxValue: 1}, + hAxis: {textStyle: {fontSize:11}}, legend: {position: 'none'}, backgroundColor: {stroke: 'black', strokeWidth: 5}} ); google.visualization.events.addListener(chart, 'select', selectHandler); @@ -356,7 +352,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]); @@ -370,7 +365,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]); @@ -402,7 +396,7 @@ for($i=0;$i<$nnode;$i++) title:"<?php print($name);?>", titleTextStyle: {fontSize: <?php print($font);?>}, legend: {position: 'none'}, width:<?php print($width);?>, height:<?php print($height);?>, - vAxis: {minValue: 0, maxValue: 1, viewWindow: {min:0}, gridlines: {count: 5}, textStyle: {fontSize: 9}}, + vAxis: {minValue: 0, maxValue: 0.5, viewWindow: {min:0}, gridlines: {count: 5}, textStyle: {fontSize: 9}}, hAxis: {gridlines: {count: 4}, textStyle: {fontSize: 9},viewWindowMode: 'maximized'}, chartArea:{left:30,top:25,right:8,bottom:25}, backgroundColor: {stroke: 'black', strokeWidth: 5}} |
