Chart.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace TEAMModelOS.Service.Model.PowerPoint
  5. {
  6. public class Chart : Item
  7. {
  8. public List<CommonChart> charts { get; set; }
  9. public List<Paragraph> title { get; set; }
  10. }
  11. public abstract class CommonChart {
  12. /// <summary>
  13. /// bar col line pie area scatter radar plotAreaRegion stock surface
  14. /// </summary>
  15. public string chartType { get; set; }
  16. public List<Dictionary<string, object>> datas {get;set;}
  17. }
  18. /// <summary>
  19. /// surface3DChart
  20. /// 三维曲面图 wireframe=0
  21. /// 三维线框曲面图 wireframe=1
  22. /// surfaceChart
  23. /// 曲面图 wireframe=0
  24. /// 曲面图-俯视框架图 wireframe=1
  25. /// </summary>
  26. public class SurfaceChart : CommonChart
  27. {
  28. public string surfaceType { get; set; }
  29. public bool is3D { get; set; }
  30. }
  31. /// <summary>
  32. /// stockChart
  33. /// 股价图
  34. /// 盘高-盘低-收盘
  35. /// 开盘-盘高-盘低-收盘
  36. /// 成交量-盘高-盘低-收盘
  37. /// 成交量-开盘-盘高-盘低-收盘
  38. /// </summary>
  39. public class StockChart : CommonChart
  40. {
  41. public string stockType { get; set; }
  42. }
  43. /// <summary>
  44. /// plotAreaRegion
  45. /// 旭日图 sunburst
  46. /// 树状图 treemap
  47. /// 直方图 排列图 clusteredColumn
  48. /// 箱型图 boxWhisker
  49. /// 瀑布图 waterfall
  50. /// </summary>
  51. public class PlotAreaChart : CommonChart
  52. {
  53. public string plotAreaType { get;set;}
  54. }
  55. /// <summary>
  56. /// type radar
  57. /// radarChart
  58. /// 雷达图
  59. /// 带数据标记的雷达图<c:radarStyle val="marker"/>
  60. /// 填充雷达图 <c:radarStyle val="filled"/>
  61. /// </summary>
  62. public class RadarChart : CommonChart
  63. {
  64. public string radarType { get; set; }
  65. }
  66. /// <summary>
  67. /// type scatter
  68. /// scatterChart
  69. /// 散点图 <c:scatterStyle val="lineMarker"/>
  70. /// 带直线的散点图 <c:scatterStyle val="lineMarker"/>
  71. /// 带直线和数据标记的散点图 <c:scatterStyle val="lineMarker"/>
  72. ///
  73. /// 带平滑线和数据标记的散点图 <c:scatterStyle val="smoothMarker"/>
  74. /// 带平滑线的散点图<c:scatterStyle val="smoothMarker"/>
  75. /// bubbleChart 气泡图 三维气泡图
  76. /// </summary>
  77. public class ScatterChart : CommonChart
  78. {
  79. public string scatterType { get; set; }
  80. // public bool Is3D { get; set; }
  81. }
  82. /// <summary>
  83. /// type area
  84. /// areaChart
  85. /// 面积图 standard
  86. /// 堆积面积图 stacked
  87. /// 百分比堆积面积图 percentStacked
  88. /// area3DChart
  89. /// 三维面积图 standard
  90. /// 三维堆积面积图 stacked
  91. /// 三维百分比堆积面积图 percentStacked
  92. /// </summary>
  93. public class AreaChart : CommonChart
  94. {
  95. public string areaType { get; set; }
  96. public bool is3D { get; set; }
  97. }
  98. /// <summary>
  99. /// type bar 条形图<c:barDir val="bar"/>
  100. /// barChart
  101. /// 簇状条形图 clustered
  102. /// 堆积条形图 stacked
  103. /// 百分比堆积条形图 percentStacked
  104. /// bar3DChart
  105. /// 三维堆积条形图 stacked
  106. /// 三维簇状条形图 clustered
  107. /// 三维百分比堆积条形图 percentStacked
  108. /// </summary>
  109. public class BarChart : CommonChart
  110. {
  111. public string barType { get; set; }
  112. public bool is3D { get; set; }
  113. }
  114. /// <summary>
  115. /// type bar 柱状图<c:barDir val="col"/>
  116. /// barChart
  117. /// 簇状柱形图 clustered
  118. /// 堆积柱形图 stacked
  119. /// 百分比堆积柱形图 percentStacked
  120. /// bar3DChart
  121. /// 三维堆积柱形图 stacked
  122. /// 三维簇状柱形图 clustered
  123. /// 三维百分比堆积柱形图 percentStacked
  124. /// 三维柱形图 standard
  125. /// </summary>
  126. public class ColChart : CommonChart
  127. {
  128. public string colType { get; set; }
  129. public bool is3D { get; set; }
  130. }
  131. /// <summary>
  132. /// type line
  133. /// lineChart
  134. /// 合并
  135. /// 折线图 standard
  136. /// 带数据标记的折线图 standard
  137. /// 合并
  138. /// 堆积折线图 stacked
  139. /// 带标记的堆积折线图 stacked <c:layout>不为空
  140. /// 合并
  141. /// 百分比堆积折线图 percentStacked
  142. /// 带数据标记的百分比堆积折线图 percentStacked
  143. /// line3DChart
  144. /// 三维折线图 standard
  145. /// </summary>
  146. public class LineChart : CommonChart
  147. {
  148. public string lineType { get; set; }
  149. public bool is3D { get; set; }
  150. }
  151. /// <summary>
  152. /// type pie
  153. /// pieChart
  154. /// 饼图 不包含
  155. /// ofPieChart
  156. /// 子母饼图 包含<c:ofPieType val="pie"/> 且val为 pie
  157. /// 复合条饼图 包含<c:ofPieType val="bar"/> 且val为 bar
  158. /// pie3DChart
  159. /// 三维饼图
  160. /// doughnutChart
  161. /// 圆环饼图
  162. /// </summary>
  163. public class PieChart : CommonChart
  164. {
  165. public string pieType { get; set; }
  166. public bool is3D { get; set; }
  167. }
  168. }