添加LiveCharts文件
This commit is contained in:
parent
80dddfa238
commit
33ea61b2e6
67
MonitoringTechnology/Models/ChartsModel.cs
Normal file
67
MonitoringTechnology/Models/ChartsModel.cs
Normal file
@ -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<float> values;
|
||||||
|
/// <summary>
|
||||||
|
/// 值
|
||||||
|
/// </summary>
|
||||||
|
public ChartValues<float> Values
|
||||||
|
{
|
||||||
|
get { return values; }
|
||||||
|
set { values = value; this.DoNotify(); }
|
||||||
|
}
|
||||||
|
|
||||||
|
private string value_Name;
|
||||||
|
/// <summary>
|
||||||
|
/// 标题
|
||||||
|
/// </summary>
|
||||||
|
public string Value_Name
|
||||||
|
{
|
||||||
|
get { return value_Name; }
|
||||||
|
set { value_Name = value; this.DoNotify(); }
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<string> x_Time;
|
||||||
|
/// <summary>
|
||||||
|
/// x轴坐标
|
||||||
|
/// </summary>
|
||||||
|
public List<string> X_Time
|
||||||
|
{
|
||||||
|
get { return x_Time; }
|
||||||
|
set { x_Time = value; this.DoNotify(); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// y轴最小值
|
||||||
|
/// </summary>
|
||||||
|
private int y_MinValue;
|
||||||
|
|
||||||
|
public int Y_MinValue
|
||||||
|
{
|
||||||
|
get { return y_MinValue; }
|
||||||
|
set { y_MinValue = value; this.DoNotify(); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// y轴最大值
|
||||||
|
/// </summary>
|
||||||
|
private int y_MaxValue;
|
||||||
|
|
||||||
|
public int Y_MaxValue
|
||||||
|
{
|
||||||
|
get { return y_MaxValue; }
|
||||||
|
set { y_MaxValue = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user