b2de63607d8e288066c25f3b0a24da2f5a44aec6.svn-base 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. $(function () {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. var A = BWA.ChartOptions.RefrigeratorAnalysis = BWA.ChartOptions.RefrigeratorAnalysis || {};
  4. var valueAxise_2 = {
  5. //pane: 'topPane',
  6. name: 'temp',
  7. position: 'right',
  8. label: {
  9. font: { color: '#c96374' },
  10. visible: true,
  11. //format: 'largeNumber'
  12. },
  13. title: {
  14. text: '소비전력량 (kWh)'
  15. }
  16. }
  17. var series_2 = {
  18. type: 'spline',
  19. color: '#c96374',
  20. //pane: 'topPane',
  21. axis: 'temp',
  22. valueField: 'temp',
  23. point: { size: 4 },
  24. name: '소비전력',
  25. label: {
  26. visible: false,
  27. font: { color: '#c96374', },
  28. //customizeText: function () {
  29. // return '외기온도 (°C)';
  30. //}
  31. }
  32. }
  33. /*
  34. C.getSeriesOptions = function (k) {
  35. return {
  36. };
  37. };*/
  38. A.getATFChartOptions = function (codeTimeType) {
  39. return {
  40. palette: "Bright",
  41. legend: {
  42. visible: false
  43. },
  44. //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(moment(), codeTimeType),
  45. commonSeriesSettings: {
  46. argumentField: "DateTime",
  47. selectionStyle: {
  48. hatching: {
  49. direction: "left"
  50. }
  51. }
  52. },
  53. valueAxis: [{
  54. title: {
  55. text: 'ATF'
  56. }
  57. }].concat(valueAxise_2),
  58. series: [{
  59. type: 'bar',
  60. valueField: 'atf',
  61. argumentField: 'DateTime',
  62. label: {
  63. visible: false
  64. //customizeText: function() {
  65. // return this.argumentField + this.valueText;
  66. //}
  67. },
  68. point: { size: 8 }
  69. }].concat(series_2),
  70. tooltip: {
  71. enabled: true,
  72. },
  73. };
  74. };
  75. A.getChart_3_Options = function (codeTimeType) {
  76. return {
  77. palette: "Bright",
  78. legend: {
  79. visible: true,
  80. verticalAlignment: 'top',
  81. horizontalAlignment: 'center'
  82. },
  83. commonSeriesSettings: {
  84. argumentField: "DateTime",
  85. selectionStyle: {
  86. hatching: {
  87. direction: "left"
  88. }
  89. }
  90. },
  91. valueAxis: [{
  92. title: {
  93. text: '생산열량 (kcal)'
  94. }
  95. }].concat(valueAxise_2),
  96. series: [{
  97. type: 'bar',
  98. valueField: 'kcal',
  99. argumentField: 'DateTime',
  100. name: '생산열량',
  101. label: {
  102. visible: false
  103. //customizeText: function() {
  104. // return this.argumentField + this.valueText;
  105. //}
  106. },
  107. point: { size: 8 }
  108. }].concat(series_2),
  109. tooltip: {
  110. enabled: true,
  111. },
  112. crosshair: {
  113. enabled: true,
  114. width: 2,
  115. horizontalLine: {
  116. color: 'red',
  117. dashStyle: 'dash',
  118. visible: false
  119. },
  120. verticalLine: {
  121. color: 'blue',
  122. dashStyle: 'dash',
  123. visible: true
  124. },
  125. label: {
  126. visible: true,
  127. backgroundColor: "#949494",
  128. font: {
  129. color: "#fff",
  130. size: 12,
  131. }
  132. }
  133. }
  134. };
  135. };
  136. //var valueAxise_678 = {
  137. // name: 'hz',
  138. // position: 'right',
  139. // label: {
  140. // visible: true
  141. // },
  142. // title: {
  143. // text: '주파수 (Hz)'
  144. // }
  145. //}
  146. //var series_678 = {
  147. // type: 'spline',
  148. // color: '#c96374',
  149. // //pane: 'topPane',
  150. // axis: 'hz',
  151. // valueField: 'hz',
  152. // point: { size: 4 },
  153. // name: '팬 주파수',
  154. // label: {
  155. // visible: false,
  156. // //font: { color: '#c96374', },
  157. // customizeText: function () {
  158. // return '주파수 (Hz)';
  159. // }
  160. // }
  161. //}
  162. A.getChart_678_Options = function (codeTimeType) {
  163. return {
  164. palette: "Bright",
  165. legend: {
  166. visible: true,
  167. verticalAlignment: 'top',
  168. horizontalAlignment: 'center'
  169. },
  170. commonSeriesSettings: {
  171. argumentField: "DateTime",
  172. selectionStyle: {
  173. hatching: {
  174. direction: "left"
  175. }
  176. }
  177. },
  178. valueAxis: [{
  179. title: {
  180. text: '소비전력량 (kWh)'
  181. }
  182. }],//.concat(valueAxise_678)
  183. series: [{
  184. type: 'bar',
  185. valueField: 'kw',
  186. argumentField: 'DateTime',
  187. name: '소비전력',
  188. label: {
  189. visible: false,
  190. //customizeText: function() {
  191. // return this.argumentField + this.valueText;
  192. //}
  193. },
  194. point: { size: 8 }
  195. }],//.concat(series_678),
  196. tooltip: {
  197. enabled: true,
  198. },
  199. crosshair: {
  200. enabled: true,
  201. width: 2,
  202. horizontalLine: {
  203. color: 'red',
  204. dashStyle: 'dash',
  205. visible: false
  206. },
  207. verticalLine: {
  208. color: 'blue',
  209. dashStyle: 'dash',
  210. visible: true
  211. },
  212. label: {
  213. visible: true,
  214. backgroundColor: "#949494",
  215. font: {
  216. color: "#fff",
  217. size: 12,
  218. }
  219. }
  220. }
  221. };
  222. };
  223. });