0 && $num == 0){
$label = $datetime." ".$data[0];
($var_z !="") ? $data_z1[] = "{x: new Date('".$label."'), y: ".$data[1]."}":"";
($var_x !="") ? $data_x1[] = "{x: new Date('".$label."'), y: ".$data[7]."}":"";
($var_y !="") ? $data_y1[] = "{x: new Date('".$label."'), y: ".$data[13]."}":"";
($var_sum !="") ? $data_sum1[] = "{x: new Date('".$label."'), y: ".$data[19]."}":"";
($var_z !="") ? $data_z2[] = "{x: new Date('".$label."'), y: ".$data[2]."}":"";
($var_x !="") ? $data_x2[] = "{x: new Date('".$label."'), y: ".$data[8]."}":"";
($var_y !="") ? $data_y2[] = "{x: new Date('".$label."'), y: ".$data[14]."}":"";
($var_sum !="") ? $data_sum2[] = "{x: new Date('".$label."'), y: ".$data[20]."}":"";
($var_z !="") ? $data_z3[] = "{x: new Date('".$label."'), y: ".$data[3]."}":"";
($var_x !="") ? $data_x3[] = "{x: new Date('".$label."'), y: ".$data[9]."}":"";
($var_y !="") ? $data_y3[] = "{x: new Date('".$label."'), y: ".$data[15]."}":"";
($var_sum !="") ? $data_sum3[] = "{x: new Date('".$label."'), y: ".$data[21]."}":"";
($var_z !="") ? $data_z4[] = "{x: new Date('".$label."'), y: ".$data[4]."}":"";
($var_x !="") ? $data_x4[] = "{x: new Date('".$label."'), y: ".$data[10]."}":"";
($var_y !="") ? $data_y4[] = "{x: new Date('".$label."'), y: ".$data[16]."}":"";
($var_sum !="") ? $data_sum4[] = "{x: new Date('".$label."'), y: ".$data[22]."}":"";
($var_z !="") ? $data_z5[] = "{x: new Date('".$label."'), y: ".$data[5]."}":"";
($var_x !="") ? $data_x5[] = "{x: new Date('".$label."'), y: ".$data[11]."}":"";
($var_y !="") ? $data_y5[] = "{x: new Date('".$label."'), y: ".$data[17]."}":"";
($var_sum !="") ? $data_sum5[] = "{x: new Date('".$label."'), y: ".$data[23]."}":"";
($var_z !="") ? $data_z6[] = "{x: new Date('".$label."'), y: ".$data[6]."}":"";
($var_x !="") ? $data_x6[] = "{x: new Date('".$label."'), y: ".$data[12]."}":"";
($var_y !="") ? $data_y6[] = "{x: new Date('".$label."'), y: ".$data[18]."}":"";
($var_sum !="") ? $data_sum6[] = "{x: new Date('".$label."'), y: ".$data[24]."}":"";
$i++;
if($row == "30") break;
}
$row++;
}
fclose($handle);
}
$value = "{type: 'spline',
showInLegend: true,
name: 'Axis X1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_x1)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Y1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_y1)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Z1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_z1)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Vector',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_sum1)."]}";
$value2 = "{type: 'spline',
showInLegend: true,
name: 'Axis X1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_x2)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Y1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_y2)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Z1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_z2)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Vector',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_sum2)."]}";
$value3 = "{type: 'spline',
showInLegend: true,
name: 'Axis X1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_x3)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Y1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_y3)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Z1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_z3)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Vector',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_sum3)."]}";
$value4 = "{type: 'spline',
showInLegend: true,
name: 'Axis X1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_x4)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Y1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_y4)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Z1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_z4)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Vector',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_sum4)."]}";
$value5 = "{type: 'spline',
showInLegend: true,
name: 'Axis X1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_x5)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Y1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_y5)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Z1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_z5)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Vector',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_sum5)."]}";
$value6 = "{type: 'spline',
showInLegend: true,
name: 'Axis X1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_x6)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Y1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_y6)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Z1',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_z6)."]},
{type: 'spline',
showInLegend: true,
name: 'Axis Vector',
markerSize: 0,
xValueFormatString:'H:m:s',
dataPoints: [".implode(",",$data_sum6)."]}";
?>