From 4af6c50489720291368dd453002f2cd0acd0131c Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Tue, 25 Apr 2023 07:08:29 +0000 Subject: [PATCH] * Fix bug#34538. --- module/chart/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/chart/model.php b/module/chart/model.php index 5dd1919c42..d6afa91b19 100644 --- a/module/chart/model.php +++ b/module/chart/model.php @@ -396,7 +396,7 @@ class chartModel extends model $optionList = $this->getSysOptions($fields[$group]['type'], $fields[$group]['object'], $fields[$group]['field']); foreach($xLabels as $index => $xLabel) $xLabels[$index] = isset($optionList[$xLabel]) ? $optionList[$xLabel] : $xLabel; - $xaxis = array('type' => 'category', 'data' => $xLabels, 'boundaryGap' => false); + $xaxis = array('type' => 'category', 'data' => $xLabels, 'axisTick' => array('alignWithLabel' => true)); $yaxis = array('type' => 'value'); $legend = new stdclass(); $series = array(); @@ -456,7 +456,7 @@ class chartModel extends model $optionList = $this->getSysOptions($fields[$group]['type'], $fields[$group]['object'], $fields[$group]['field']); foreach($xLabels as $index => $xLabel) $xLabels[$index] = isset($optionList[$xLabel]) ? $optionList[$xLabel] : $xLabel; - $xaxis = array('type' => 'category', 'data' => $xLabels, 'axisLabel' => array('interval' => 0), 'boundaryGap' => false); + $xaxis = array('type' => 'category', 'data' => $xLabels, 'axisLabel' => array('interval' => 0), 'axisTick' => array('alignWithLabel' => true)); $yaxis = array('type' => 'value'); $legend = new stdclass();