* Default fasle for metric titleShow.

This commit is contained in:
songchenxuan
2023-12-12 00:17:54 +08:00
parent df96e69034
commit 2016a44272
+2 -1
View File
@@ -280,6 +280,7 @@ class screenModel extends model
}
$component = $this->getChartOption($chart, $component, $filters);
if($type == 'chart') $component = $this->getAxisRotateOption($chart, $component);
$component->chartConfig->dataset = $component->option->dataset;
@@ -1606,7 +1607,7 @@ class screenModel extends model
$chartOption = $this->metric->getEchartsOptions($resultHeader, $allResultData);
if(!isset($chartOption['title'])) $chartOption['title'] = array('text' => $metric->name, 'show' => true, 'titleShow' => true, 'textStyle' => array('color' => '#BFBFBF', 'fontSize' => 18));
if(!isset($chartOption['title'])) $chartOption['title'] = array('text' => $metric->name, 'show' => false, 'titleShow' => false, 'textStyle' => array('color' => '#BFBFBF', 'fontSize' => 18));
$chartOption['title']['text'] = $metric->name;
return $chartOption;