以下是调用数据库的php:
while($row = mysqli_fetch_array($result)) {
$point1=intval($row['Point1']);
$point2=intval($row['Point2']);
$time=(strtotime($row['Time']))*1000;
}
$p1 = array($time, $point1);
$p2 = array($time, $point2);
echo json_encode(array($p1,$p2));