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_evd_example.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'sourcecodes/network_layout_evd_example.php') diff --git a/sourcecodes/network_layout_evd_example.php b/sourcecodes/network_layout_evd_example.php index 8cc4bd00..3f22064d 100644 --- a/sourcecodes/network_layout_evd_example.php +++ b/sourcecodes/network_layout_evd_example.php @@ -1,5 +1,5 @@ "; var keyv=""; - 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) { @@ -370,8 +370,8 @@ for($i=0;$i<$nnode;$i++) chart.draw(data, {title:"", titleTextStyle: {fontSize: }, width:, height:, - vAxis: {textStyle: {fontSize:}}, - 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); @@ -391,8 +391,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]); $c_i++; @@ -405,8 +403,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]); $c_i++; @@ -437,7 +433,7 @@ for($i=0;$i<$nnode;$i++) title:"", titleTextStyle: {fontSize: }, legend: {position: 'none'}, width:, 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}} -- cgit 1.4.1