287017d6b8e19683f96afd4aa7bdb62ad602bc6b.svn-base 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. $(function() {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. BWA.ChartOptions.EnergySavingControl = BWA.ChartOptions.EnergySavingControl || {};
  4. BWA.ChartOptions.EnergySavingControl.getChartControlSetOptions = function (codeTimeType) {
  5. return {
  6. //palette: 'Harmony Light',
  7. palette: 'Bright',
  8. legend: {
  9. visible: true,
  10. verticalAlignment: 'top',
  11. horizontalAlignment: 'center'
  12. },
  13. //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
  14. commonSeriesSettings: {
  15. argumentField: 'DateTime',
  16. selectionStyle: {
  17. hatching: {
  18. direction: 'left'
  19. }
  20. }
  21. },
  22. valueAxis: [
  23. {
  24. name: 'temp', //
  25. position: 'left',
  26. type: 'continuous',
  27. valueType: 'numeric',
  28. tickInterval: 10,
  29. valueMarginsEnabled: true,
  30. minValueMargin: 0,
  31. maxValueMargin: 0,
  32. min: -10,
  33. max: 40,
  34. label: {
  35. //font: { color: '#c96374' },
  36. },
  37. title: {
  38. text: '온도 (°C)',
  39. },
  40. },
  41. {
  42. tickInterval: 20,
  43. valueMarginsEnabled: true,
  44. minValueMargin: 0,
  45. maxValueMargin: 0,
  46. //argumentType: 'numeric',
  47. min: 0,
  48. max: 100,
  49. label: {
  50. //font: { color: '#00A7C6' },
  51. },
  52. name: 'humi', //
  53. position: 'right',
  54. title: {
  55. text: '습도 (%)',
  56. }
  57. }
  58. ],
  59. series: [
  60. {
  61. type: 'spline',
  62. //pane: 'topPane',
  63. axis: 'temp',
  64. valueField: 'temp',
  65. visible: true, // 시리즈만 안보이게 할수 있다. 대신 그렇게 할려면 시작은 false로 해야 한다 hcLee 2015 04 25
  66. point: { size: 8 },
  67. name: '실내온도',
  68. color: '#c96374',
  69. label: {
  70. visible: false,
  71. customizeText: function () {
  72. return this.valueText + ' °C';
  73. }
  74. }
  75. }, {
  76. type: 'bar',
  77. //pane: 'topPane',
  78. axis: 'humi',
  79. valueField: 'humi',
  80. point: { size: 8 },
  81. name: '실내습도',
  82. color: '#00A7C6',
  83. label: {
  84. visible: false,
  85. customizeText: function () {
  86. return this.valueText + ' %';
  87. }
  88. }
  89. },
  90. {
  91. type: 'spline',
  92. //pane: 'topPane',
  93. axis: 'temp',
  94. valueField: 'out_temp',
  95. visible: true, // 시리즈만 안보이게 할수 있다. 대신 그렇게 할려면 시작은 false로 해야 한다 hcLee 2015 04 25
  96. point: { size: 8 },
  97. name: '실외온도',
  98. //color: '#c96374',
  99. label: {
  100. visible: false,
  101. customizeText: function () {
  102. return this.valueText + ' °C';
  103. }
  104. }
  105. }, {
  106. type: 'bar',
  107. //pane: 'topPane',
  108. axis: 'humi',
  109. valueField: 'out_humi',
  110. point: { size: 8 },
  111. name: '실외습도',
  112. //color: '#00A7C6',
  113. label: {
  114. visible: false,
  115. customizeText: function () {
  116. return this.valueText + ' %';
  117. }
  118. }
  119. }
  120. ],
  121. tooltip: {
  122. enabled: true,
  123. },
  124. };
  125. }
  126. });