using Newtonsoft.Json.Converters; namespace DOAN.Model.MES.SmartScreen { /// /// echarts 通用Options返回值 /// public class EchartsOptions { public EchartsTitle Title { get; set; } = null; public EchartsXAxis XAxis { get; set; } = null; public EchartsYAxis YAxis { get; set; } = null; public List Series { get; set; } = new List(); } /// /// echarts图表标题 /// public class EchartsTitle { public EchartsTitle(string Text,string SubText) { this.Text = Text; this.SubText = SubText; } public EchartsTitle(){} public string Text { get; set; } = string.Empty; public string SubText { get; set; } = string.Empty; } /// /// echarts X轴 /// public class EchartsXAxis { public List Data { get; set; } = new List(); // public string[] Data { get; set; } =Array.Empty(); // value 数值轴,适用于连续数据 category 类目轴,适用于离散的类目数据 time 时间轴,适用于连续的时序数据 log 对数轴。适用于对数数据 public string Type { get; set; } = "category"; public string Max { get; set; } public string Min { get; set; } } /// /// echarts Y轴 /// public class EchartsYAxis { public List Data { get; set; } = new List(); // value 数值轴,适用于连续数据 category 类目轴,适用于离散的类目数据 time 时间轴,适用于连续的时序数据 log 对数轴。适用于对数数据 public string Type { get; set; } = "category"; public string Max { get; set; } public string Min { get; set; } } /// /// echarts图表series返回值 /// public class EchartsSeries { /// /// 标签名称 /// public string Name { get; set; } = "category"; /// /// bar-柱状图 line-折线图 EchartsSeriesType enum结构 /// public string Type { get; set; } = "bar"; /// /// 参数值 /// public List Data { get; set; } = new List(); } /// /// echarts图表series返回值内容 /// public class EchartsSeriesData { /// /// 标签名称 /// public string Name { get; set; } = string.Empty; /// /// 参数值 /// public decimal Value { get; set; } = new decimal(); } }