using System; using System.Collections.Generic; using System.Text; namespace HTEXLib { public class Chart : Item { public List charts { get; set; } public Shape title { get; set; } public HTEXLib.Models.HTEX.ShapeStyle style { get; set; } = new Models.HTEX.ShapeStyle(); } public abstract class CommonChart { /// /// bar col line pie area scatter radar plotAreaRegion stock surface /// public string chartType { get; set; } public List> datas {get;set;} } /// /// surface3DChart /// 三维曲面图 wireframe=0 /// 三维线框曲面图 wireframe=1 /// surfaceChart /// 曲面图 wireframe=0 /// 曲面图-俯视框架图 wireframe=1 /// public class SurfaceChart : CommonChart { public string surfaceType { get; set; } public bool is3D { get; set; } } /// /// stockChart /// 股价图 /// 盘高-盘低-收盘 /// 开盘-盘高-盘低-收盘 /// 成交量-盘高-盘低-收盘 /// 成交量-开盘-盘高-盘低-收盘 /// public class StockChart : CommonChart { public string stockType { get; set; } } /// /// plotAreaRegion /// 旭日图 sunburst /// 树状图 treemap /// 直方图 排列图 clusteredColumn /// 箱型图 boxWhisker /// 瀑布图 waterfall /// public class PlotAreaChart : CommonChart { public string plotAreaType { get;set;} } /// /// type radar /// radarChart /// 雷达图 /// 带数据标记的雷达图 /// 填充雷达图 /// public class RadarChart : CommonChart { public string radarType { get; set; } } /// /// type scatter /// scatterChart /// 散点图 /// 带直线的散点图 /// 带直线和数据标记的散点图 /// /// 带平滑线和数据标记的散点图 /// 带平滑线的散点图 /// bubbleChart 气泡图 三维气泡图 /// public class ScatterChart : CommonChart { public string scatterType { get; set; } // public bool Is3D { get; set; } } /// /// type area /// areaChart /// 面积图 standard /// 堆积面积图 stacked /// 百分比堆积面积图 percentStacked /// area3DChart /// 三维面积图 standard /// 三维堆积面积图 stacked /// 三维百分比堆积面积图 percentStacked /// public class AreaChart : CommonChart { public string areaType { get; set; } public bool is3D { get; set; } } /// /// type bar 条形图 /// barChart /// 簇状条形图 clustered /// 堆积条形图 stacked /// 百分比堆积条形图 percentStacked /// bar3DChart /// 三维堆积条形图 stacked /// 三维簇状条形图 clustered /// 三维百分比堆积条形图 percentStacked /// public class BarChart : CommonChart { public string barType { get; set; } public bool is3D { get; set; } } /// /// type bar 柱状图 /// barChart /// 簇状柱形图 clustered /// 堆积柱形图 stacked /// 百分比堆积柱形图 percentStacked /// bar3DChart /// 三维堆积柱形图 stacked /// 三维簇状柱形图 clustered /// 三维百分比堆积柱形图 percentStacked /// 三维柱形图 standard /// public class ColChart : CommonChart { public string colType { get; set; } public bool is3D { get; set; } } /// /// type line /// lineChart /// 合并 /// 折线图 standard /// 带数据标记的折线图 standard /// 合并 /// 堆积折线图 stacked /// 带标记的堆积折线图 stacked 不为空 /// 合并 /// 百分比堆积折线图 percentStacked /// 带数据标记的百分比堆积折线图 percentStacked /// line3DChart /// 三维折线图 standard /// public class LineChart : CommonChart { public string lineType { get; set; } public bool is3D { get; set; } } /// /// type pie /// pieChart /// 饼图 不包含 /// ofPieChart /// 子母饼图 包含 且val为 pie /// 复合条饼图 包含 且val为 bar /// pie3DChart /// 三维饼图 /// doughnutChart /// 圆环饼图 /// public class PieChart : CommonChart { public string pieType { get; set; } public bool is3D { get; set; } } }