From 97fea417bbf6b41a96c9c9cb341a127efc6b6b47 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 12 Apr 2024 14:51:17 +0800 Subject: [PATCH] * Adjust the x-axis label angle. --- module/block/ui/productstatisticblock.html.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/block/ui/productstatisticblock.html.php b/module/block/ui/productstatisticblock.html.php index 2a7873f76d..35e0ea59e5 100644 --- a/module/block/ui/productstatisticblock.html.php +++ b/module/block/ui/productstatisticblock.html.php @@ -193,9 +193,11 @@ statisticBlock echarts ( set::color(array('#2B80FF', '#17CE97')), + set::width('100%'), + set::height(170), set::grid(array('left' => '10px', 'top' => '30px', 'right' => '0', 'bottom' => '0', 'containLabel' => true)), set::legend(array('show' => true, 'right' => '0')), - set::xAxis(array('type' => 'category', 'data' => array_keys($monthFinish), 'splitLine' => array('show' => false), 'axisTick' => array('alignWithLabel' => true, 'interval' => '0'))), + set::xAxis(array('type' => 'category', 'data' => array_keys($monthFinish), 'splitLine' => array('show' => false), 'axisTick' => array('alignWithLabel' => true, 'interval' => '0'), 'axisLabel' => array('rotate' => 45))), set::yAxis(array('type' => 'value', 'name' => $lang->number, 'splitLine' => array('show' => false), 'axisLine' => array('show' => true, 'color' => '#DDD'))), set::series ( @@ -217,7 +219,7 @@ statisticBlock ) ) ) - )->size('100%', 170), + ) ), ($product->newPlan || $product->newExecution || $product->newRelease) ? col (