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;