From a01bcd65d6bf5f0bce4f4bd8c493c112462213e7 Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Mon, 18 Dec 2023 10:13:00 +0800 Subject: [PATCH] Revert "* Default fasle for metric titleShow." This reverts commit 2016a44272a983383d2c7fa3e937d3258a0aaf2a. --- module/screen/model.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/screen/model.php b/module/screen/model.php index b464a64a6b..f8e67137a2 100644 --- a/module/screen/model.php +++ b/module/screen/model.php @@ -280,7 +280,6 @@ class screenModel extends model } $component = $this->getChartOption($chart, $component, $filters); - if($type == 'chart') $component = $this->getAxisRotateOption($chart, $component); $component->chartConfig->dataset = $component->option->dataset; @@ -1607,7 +1606,7 @@ class screenModel extends model $chartOption = $this->metric->getEchartsOptions($resultHeader, $allResultData); - if(!isset($chartOption['title'])) $chartOption['title'] = array('text' => $metric->name, 'show' => false, 'titleShow' => false, 'textStyle' => array('color' => '#BFBFBF', 'fontSize' => 18)); + if(!isset($chartOption['title'])) $chartOption['title'] = array('text' => $metric->name, 'show' => true, 'titleShow' => true, 'textStyle' => array('color' => '#BFBFBF', 'fontSize' => 18)); $chartOption['title']['text'] = $metric->name; return $chartOption;