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_2.php | |
| parent | a781cb1ff2e7ae6de0f686bd02cd279261485b1e (diff) | |
| download | BNW-74b673ba4a706085201a5610b938ff98f08f641d.tar.gz | |
Bug fixes, code comments, and minor changes
Diffstat (limited to 'sourcecodes/network_layout_evd_2.php')
| -rw-r--r-- | sourcecodes/network_layout_evd_2.php | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/sourcecodes/network_layout_evd_2.php b/sourcecodes/network_layout_evd_2.php index 0daf9df9..df400828 100644 --- a/sourcecodes/network_layout_evd_2.php +++ b/sourcecodes/network_layout_evd_2.php @@ -1,5 +1,5 @@ <?php -include("structuremap.php"); + //include("structuremap.php"); function levelmap($inx,$name,$mapdata) @@ -441,7 +441,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++; @@ -456,7 +455,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++; @@ -541,7 +539,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) { @@ -559,8 +557,8 @@ else 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); @@ -594,7 +592,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++; @@ -611,7 +608,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]); @@ -628,7 +624,6 @@ if($evd==-9999) } else { - // $evd=map($name,$evd,$keyval); $evduse=$evd; ?> var data = google.visualization.arrayToDataTable([ @@ -640,7 +635,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]); @@ -663,7 +657,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++; @@ -712,7 +705,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}} ); |
