From 74b673ba4a706085201a5610b938ff98f08f641d Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Wed, 25 Apr 2018 16:43:19 -0500 Subject: Bug fixes, code comments, and minor changes --- sourcecodes/network_layout_inv_2.php | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) (limited to 'sourcecodes/network_layout_inv_2.php') diff --git a/sourcecodes/network_layout_inv_2.php b/sourcecodes/network_layout_inv_2.php index 858de277..550fdf4a 100644 --- a/sourcecodes/network_layout_inv_2.php +++ b/sourcecodes/network_layout_inv_2.php @@ -1,5 +1,5 @@ - var chart = new google.visualization.BarChart(document.getElementById('')); + var chart = new google.visualization.ColumnChart(document.getElementById('')); function selectHandler() { var selectedItem = chart.getSelection()[0]; if (selectedItem) { @@ -772,8 +764,8 @@ else chart.draw(data, {title:"", titleTextStyle: {fontSize: }, width:, height:, - vAxis: {textStyle: {fontSize:}}, - 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: '', strokeWidth: 5}} ); google.visualization.events.addListener(chart, 'select', selectHandler); @@ -813,14 +805,11 @@ 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++; $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++; @@ -832,15 +821,11 @@ 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++; $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++; @@ -863,7 +848,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++; @@ -880,8 +864,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++; @@ -898,7 +880,6 @@ if($evd==-9999) } else { - //$evd=map($name,$evd,$keyval); $evduse=$evd; ?> var data = google.visualization.arrayToDataTable([ @@ -910,8 +891,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]); $c_i_old++; @@ -933,7 +912,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++; @@ -980,7 +958,7 @@ else legend: {position: 'none'}, width:, 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: '', strokeWidth: 5}} ); -- cgit 1.4.1