1ae498a71bf70329c5bc0a066cbd6cdfe78d4600.svn-base 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. $(function() {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. BWA.ChartOptions.WaterCoolingAnalysis = BWA.ChartOptions.WaterCoolingAnalysis || {};
  4. BWA.ChartOptions.WaterCoolingAnalysis.getTemperatureElectricityOptions = function(codeTimeType) {
  5. return {
  6. palette: 'Harmony Light',
  7. legend: {
  8. visible: true,
  9. verticalAlignment: 'top',
  10. horizontalAlignment: 'center'
  11. },
  12. //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
  13. commonSeriesSettings: {
  14. argumentField: 'DateTime',
  15. selectionStyle: {
  16. hatching: {
  17. direction: 'left'
  18. }
  19. }
  20. },
  21. valueAxis: [{
  22. title: {
  23. text: '소비전력량 (kWh)'
  24. }
  25. },
  26. {
  27. type: 'continuous',
  28. valueType: 'numeric',
  29. tickInterval: 10,
  30. valueMarginsEnabled: true,
  31. minValueMargin: 0,
  32. maxValueMargin: 0,
  33. min: -10,
  34. max: 40,
  35. position: 'right',
  36. name: 'temperature',
  37. label: {
  38. font: { color: '#c96374' },
  39. },
  40. title: {
  41. text: $G('outdoorTemperatureWithUnit')
  42. }
  43. }],
  44. series: [{
  45. type: 'bar',
  46. valueField: 'CV',
  47. //axis: 'Cold',
  48. name: '냉방소비전력',
  49. label: {
  50. visible: false,
  51. customizeText: function() {
  52. return this.valueText + 'kWh';
  53. }
  54. },
  55. point: { size: 8 }
  56. }, {
  57. type: 'bar',
  58. valueField: 'HV',
  59. //axis: 'Hot',
  60. name: '난방소비전력',
  61. label: {
  62. visible: false,
  63. customizeText: function() {
  64. return this.valueText + 'kWh';
  65. }
  66. },
  67. point: { size: 8 }
  68. },
  69. {
  70. type: 'spline',
  71. valueField: 'Value',
  72. axis: 'temperature',
  73. name: $G('outdoorTemperature'),
  74. label: {
  75. visible: false,
  76. customizeText: function () {
  77. return this.valueText + '°C';
  78. }
  79. },
  80. point: { size: 2 }
  81. }],
  82. tooltip: {
  83. enabled: true,
  84. },
  85. crosshair: {
  86. enabled: true,
  87. width: 2,
  88. horizontalLine: {
  89. color: 'red',
  90. dashStyle: 'dash',
  91. visible: false
  92. },
  93. verticalLine: {
  94. color: 'black',
  95. dashStyle: 'dash',
  96. visible: true
  97. },
  98. label: {
  99. visible: true,
  100. backgroundColor: "#949494",
  101. font: {
  102. color: "#fff",
  103. size: 12,
  104. }
  105. }
  106. }
  107. };
  108. }
  109. });