From 33ea61b2e628886651ebacf23323bb6d504b8f0a Mon Sep 17 00:00:00 2001 From: MoYue <18168119590@163.com> Date: Fri, 3 Feb 2023 16:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0LiveCharts=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MonitoringTechnology/Models/ChartsModel.cs | 67 ++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 MonitoringTechnology/Models/ChartsModel.cs diff --git a/MonitoringTechnology/Models/ChartsModel.cs b/MonitoringTechnology/Models/ChartsModel.cs new file mode 100644 index 0000000..7853a1f --- /dev/null +++ b/MonitoringTechnology/Models/ChartsModel.cs @@ -0,0 +1,67 @@ +using LiveCharts; +using MonitoringTechnology.Common; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MonitoringTechnology.Models +{ + public class ChartsModel : NotifyBase + { + private ChartValues values; + /// + /// 值 + /// + public ChartValues Values + { + get { return values; } + set { values = value; this.DoNotify(); } + } + + private string value_Name; + /// + /// 标题 + /// + public string Value_Name + { + get { return value_Name; } + set { value_Name = value; this.DoNotify(); } + } + + private List x_Time; + /// + /// x轴坐标 + /// + public List X_Time + { + get { return x_Time; } + set { x_Time = value; this.DoNotify(); } + } + + /// + /// y轴最小值 + /// + private int y_MinValue; + + public int Y_MinValue + { + get { return y_MinValue; } + set { y_MinValue = value; this.DoNotify(); } + } + + /// + /// y轴最大值 + /// + private int y_MaxValue; + + public int Y_MaxValue + { + get { return y_MaxValue; } + set { y_MaxValue = value; } + } + + + } +}