1cacad94fcac42701ee461e0f39b788addea6acf.svn-base 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. $(function () {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. BWA.ChartOptions.EnthalpyControl = BWA.ChartOptions.EnthalpyControl || {};
  4. BWA.ChartOptions.EnthalpyControl.getChartInOutDoorOptions = function (codeTimeType) {
  5. return {
  6. palette: 'Bright',
  7. legend: {
  8. visible: true,
  9. verticalAlignment: 'top',
  10. horizontalAlignment: 'center'
  11. },
  12. //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
  13. argumentAxis:
  14. {
  15. valueMarginsEnabled: false,
  16. argumentType: 'datetime',
  17. label: {
  18. alignment: 'center',
  19. format: 'HH시-mm분'
  20. },
  21. tickInterval: { minutes: 15 },
  22. },
  23. commonSeriesSettings: {
  24. argumentField: 'DateTime',
  25. selectionStyle: {
  26. hatching: {
  27. direction: 'left'
  28. }
  29. }
  30. },
  31. valueAxis: [
  32. {
  33. name: 'temp',
  34. position: 'left',
  35. type: 'continuous',
  36. valueType: 'numeric',
  37. tickInterval: 10,
  38. min: -10,
  39. max: 40,
  40. title: {
  41. text: '온도 (°C)',
  42. },
  43. },
  44. {
  45. tickInterval: 20,
  46. min: 0,
  47. max: 100,
  48. name: 'humi',
  49. position: 'right',
  50. title: {
  51. text: '습도 (%)',
  52. }
  53. }
  54. ],
  55. series: [
  56. {
  57. type: 'spline',
  58. axis: 'temp',
  59. valueField: 'IndoorTemp',
  60. visible: true,
  61. point: { size: 8 },
  62. name: '실내온도',
  63. color: '#c96374',
  64. label: {
  65. visible: false
  66. }
  67. }, {
  68. type: 'spline',//bar
  69. axis: 'humi',
  70. valueField: 'IndoorHumy',
  71. point: { size: 8 },
  72. name: '실내습도',
  73. color: '#00A7C6',
  74. label: {
  75. visible: false
  76. }
  77. },
  78. {
  79. type: 'spline',
  80. axis: 'temp',
  81. valueField: 'outdoorTemp',
  82. visible: true,
  83. point: { size: 8 },
  84. name: '실외온도',
  85. label: {
  86. visible: false
  87. }
  88. }, {
  89. type: 'spline',//bar
  90. axis: 'humi',
  91. valueField: 'outdoorHumy',
  92. point: { size: 8 },
  93. name: '실외습도',
  94. label: {
  95. visible: false
  96. }
  97. }
  98. ],
  99. tooltip: {
  100. enabled: true,
  101. color: "#3e1717",
  102. format: 'fixedPoint',
  103. precision: 2,
  104. font: {
  105. color: "white",
  106. size: 12,
  107. weight: 600,
  108. },
  109. argumentFormat: 'shortDate',
  110. customizeText: function () {
  111. return {
  112. text: [this.argumentText, ': ', this.valueText].join('')
  113. };
  114. }
  115. },
  116. crosshair: {
  117. enabled: true,
  118. width: 2,
  119. horizontalLine: {
  120. color: 'limegreen',
  121. dashStyle: 'solid',
  122. visible: true
  123. },
  124. verticalLine: {
  125. color: 'limegreen',
  126. dashStyle: 'solid'
  127. },
  128. label: {
  129. visible: true,
  130. backgroundColor: "#949494",
  131. font: {
  132. color: "#fff",
  133. size: 12,
  134. },
  135. customizeText: function () {
  136. return {
  137. text: [this.argumentText, ': ', this.valueText].join('')
  138. };
  139. }
  140. }
  141. }
  142. };
  143. };
  144. });