Revert "* Default fasle for metric titleShow."

This reverts commit 2016a44272.
This commit is contained in:
qixinzhi
2023-12-18 10:53:04 +08:00
parent e4dc7e068a
commit a01bcd65d6
+1 -2
View File
@@ -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;