using AutomaticApp.Common; using LiveCharts; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AutomaticApp.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; } } private int step; /// /// 纵坐标间距 /// public int Step { get { return (Y_MaxValue - Y_MinValue) / 5; } set { step = value; this.DoNotify(); } } } }