Revert "* Default fasle for metric titleShow."
This reverts commit 2016a44272.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user