* Fix bug#33355.

This commit is contained in:
qixinzhi
2023-04-20 03:04:29 +00:00
parent cb2c15ac07
commit 2dad2fab89
+2 -2
View File
@@ -390,7 +390,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);
$xaxis = array('type' => 'category', 'data' => $xLabels, 'boundaryGap' => false);
$yaxis = array('type' => 'value');
$legend = new stdclass();
$series = array();
@@ -448,7 +448,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));
$xaxis = array('type' => 'category', 'data' => $xLabels, 'axisLabel' => array('interval' => 0), 'boundaryGap' => false);
$yaxis = array('type' => 'value');
$legend = new stdclass();