From d4588feb4165219cbd58ea83a0926c60cd5208bd Mon Sep 17 00:00:00 2001 From: hj615 Date: Wed, 3 Dec 2025 15:47:44 +0900 Subject: [PATCH] =?UTF-8?q?design:=20=EA=B7=B8=EB=9E=98=ED=94=84=20?= =?UTF-8?q?=EC=83=89=EC=83=81,=20=ED=81=AC=EA=B8=B0=20=EB=93=B1=20?= =?UTF-8?q?=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewModel/GraphControlViewModel.cs | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/SmartAquaViewer/ViewModel/GraphControlViewModel.cs b/SmartAquaViewer/ViewModel/GraphControlViewModel.cs index aedb43a..9ab0cfc 100644 --- a/SmartAquaViewer/ViewModel/GraphControlViewModel.cs +++ b/SmartAquaViewer/ViewModel/GraphControlViewModel.cs @@ -13,6 +13,13 @@ namespace SmartAquaViewer.ViewModel { public PlotModel Model { get; } + private List TankColors = new List + { + OxyColor.Parse("#CC4178BE"), + OxyColor.Parse("#CCFFFFFF"), + OxyColor.Parse("#CC6DE467"), + }; + public GraphControlViewModel() { Model = new PlotModel(); @@ -344,8 +351,8 @@ namespace SmartAquaViewer.ViewModel { Title = $"Tank {tankId}", BoxWidth = boxWidth, - Fill = OxyColor.FromAColor(160, colors[k]), - Stroke = colors[k], + Fill = OxyColor.FromAColor(160, TankColors[k]), + Stroke = TankColors[k], StrokeThickness = 1 }; @@ -762,11 +769,16 @@ namespace SmartAquaViewer.ViewModel StartAngle = 0, StrokeThickness = 0.5, InsideLabelFormat = "{1}\n {0:F2}", - InsideLabelPosition = 0.5, + InsideLabelPosition = 0.7, OutsideLabelFormat = null, // 라벨은 내부만 FontSize = 14, + InsideLabelColor = OxyColors.Black }; - if (donut) ps.InnerDiameter = 0.6; // 도넛 모드 + if (donut) + { + ps.InnerDiameter = 0.4; // 도넛 모드 + ps.InsideLabelPosition = 0.5; + } foreach (var (name, value) in finalList) {