新增spgw折线样式

This commit is contained in:
lai
2024-11-22 12:00:04 +08:00
parent 4625afcf38
commit fa794775bc

View File

@@ -48,7 +48,7 @@ $fieldList=$cstaConf[DataObject][0][DetailFieldList];
if(strlen($fieldList)){ if(strlen($fieldList)){
$fieldList="$fieldList,csta_datetime"; $fieldList="$fieldList,csta_datetime";
} }
$sql="select {$fieldList} from CSTA_DB.{$dataTable} where csta_datetime >= '{$startTime}' and csta_datetime <= '{$endTime}' "; $sql="select {$fieldList} from CSTA_DB.{$dataTable} where csta_datetime >= '{$startTime}' and csta_datetime <= '{$endTime}' order by csta_datetime asc ";
$res=mysqli_query($cstaDbConn,$sql); $res=mysqli_query($cstaDbConn,$sql);
//echo mysqli_error($cstaDbConn); //echo mysqli_error($cstaDbConn);
$num=mysqli_num_rows($res); $num=mysqli_num_rows($res);
@@ -350,13 +350,19 @@ document.addEventListener("DOMContentLoaded", function() {
series: [{ series: [{
name: 'Uplink Total Volume', name: 'Uplink Total Volume',
type: 'line', type: 'line',
smooth: true, // symbol: 'none',
symbolSize: 6,
smooth:0.6,
showSymbol: true,
data: <?php echo $upDataArrJson;?> data: <?php echo $upDataArrJson;?>
}, },
{ {
name:'Downlink Total Volume', name:'Downlink Total Volume',
type: 'line', type: 'line',
smooth: true, // symbol: 'none',
symbolSize: 6,
smooth:0.6,
showSymbol: true,
data: <?php echo $downDataArrJson;?> data: <?php echo $downDataArrJson;?>
} }
] ]