From 8ac8fea27fd1f288fb3ba2b1163f33f8739eeffd Mon Sep 17 00:00:00 2001 From: wangyuting Date: Tue, 22 Aug 2023 16:37:48 +0800 Subject: [PATCH] * Fix chart bug. --- module/block/ui/singlemonthlyprogressblock.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/block/ui/singlemonthlyprogressblock.html.php b/module/block/ui/singlemonthlyprogressblock.html.php index 4d6655c0d1..29aa0e734f 100644 --- a/module/block/ui/singlemonthlyprogressblock.html.php +++ b/module/block/ui/singlemonthlyprogressblock.html.php @@ -110,7 +110,7 @@ blockPanel set::title(array('text' => $lang->block->releasestatistic->monthly, 'textStyle' => array('fontSize' => '12'))), set::color(array('#2B80FF')), set::grid(array('left' => '10px', 'top' => '60px', 'right' => '0', 'bottom' => '0', 'containLabel' => true)), - set::xAxis(array('type' => 'category', 'data' => $months, 'splitLine' => array('show' => false), 'axisTick' => array('alignWithLabel' => true, 'interval' => 0), 'axisLabel' => array('fontSize' => $longBlock ? '8' : '10'))), + set::xAxis(array('type' => 'category', 'data' => array_keys($releaseCount), 'splitLine' => array('show' => false), 'axisTick' => array('alignWithLabel' => true, 'interval' => 0), 'axisLabel' => array('fontSize' => $longBlock ? '8' : '10'))), set::yAxis(array('type' => 'value', 'name' => "({$lang->block->projectstatistic->unit})", 'splitLine' => array('show' => false), 'axisLine' => array('show' => true, 'color' => '#DDD'), 'axisLabel' => array('showMaxLabel' => true, 'interval' => 'auto'))), set::series (