* Fix bug for waterpolo

This commit is contained in:
songchenxuan
2023-11-24 09:01:45 +08:00
committed by qixinzhi
parent a59b3cb9fc
commit ec16e80a77
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -626,7 +626,7 @@ class chartModel extends model
$molecule = $this->dao->query($moleculeSQL)->fetch();
$denominator = $this->dao->query($denominatorSQL)->fetch();
$percent = round($molecule->count / $denominator->count, 4);
$percent = $denominator->count ? round($molecule->count / $denominator->count, 4) : 0;
$series = array(array('type' => 'liquidFill', 'data' => array($percent), 'color' => array('#2e7fff'), 'outline' => array('show' => false), 'label' => array('fontSize' => 26)));
$tooltip = array('show' => true);
+2
View File
@@ -1072,6 +1072,8 @@ class screenModel extends model
$chart->sql = $this->setFilterSQL($chart);
return $this->getBarChartOption($component, $chart);
break;
case 'waterpolo':
return $this->getWaterPoloOption($component, $chart);
}
}