From 54716b0ce9a13781fba098fbac070a24bc148273 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Tue, 23 Jan 2024 08:52:25 +0800 Subject: [PATCH] * Adjust legend color of metric in screen designer. --- module/screen/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/screen/model.php b/module/screen/model.php index 679c24809e..f263a84503 100644 --- a/module/screen/model.php +++ b/module/screen/model.php @@ -1823,6 +1823,8 @@ class screenModel extends model if(!isset($chartOption['title'])) $chartOption['title'] = array('text' => $metric->name, 'show' => false, 'titleShow' => true, 'textStyle' => array('color' => '#BFBFBF')); $chartOption['title']['text'] = $metric->name; $chartOption['backgroundColor'] = "#0B1727FF"; + $chartOption['legend']['textStyle']['color'] = 'white'; + $chartOption['legend']['inactiveColor'] = 'gray'; if(!empty($component)) {