= $max_1){ $max_1 = $data[1]; $label = $datetime." ".$data[0]; } if($data[2] >= $max_2){ $max_2 = $data[2]; } if($data[3] >= $max_3){ $max_3 = $data[3]; $label = $datetime." ".$data[0]; } if($data[4] >= $max_4){ $max_4 = $data[4]; } $num = $j % $interval; if($num == 0){ if($_GET["Axis"] == 2){ //GAL $data1[] = "{x: new Date('".$label."'), y: ".($max_1*0.01)."}"; $data2[] = "{x: new Date('".$label."'), y: ".($max_3*0.01)."}"; }else{ //DB $data1[] = "{x: new Date('".$label."'), y: ".$max_2."}"; $data2[] = "{x: new Date('".$label."'), y: ".$max_4."}"; } $max_1 = 0; $max_2 = 0; $max_3 = 0; $max_4 = 0; } $j++; } $value = "{type: 'spline', showInLegend: true, name: 'Horizontal', markerSize: 0, xValueFormatString:'H:m:s', dataPoints: [".implode(",",$data1)."]}"; $value2 = "{type: 'spline', showInLegend: true, name: 'Vertical', markerSize: 0, xValueFormatString:'H:m:s', dataPoints: [".implode(",",$data2)."]}"; ?> $str = explode("_",$_GET['details']); $datetime = date("Y-m-d",strtotime($str['1'])); $id = explode('.',$str['2']); ?>