3299a66c306d77a21f91b0b7696f9395038ffc36.svn-base 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. $(function() {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. BWA.ChartOptions.WaterCoolingAnalysis = BWA.ChartOptions.WaterCoolingAnalysis || {};
  4. BWA.ChartOptions.WaterCoolingAnalysis.getChartAtfwOptions = 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. commonSeriesSettings: {
  14. argumentField: "DateTime",
  15. selectionStyle: {
  16. hatching: {
  17. direction: "left"
  18. }
  19. }
  20. },
  21. valueAxis: [{
  22. //type: 'continuous',
  23. //valueType: 'numeric',
  24. //tickInterval: 10,
  25. //valueMarginsEnabled: true,
  26. //minValueMargin: 0,
  27. //maxValueMargin: 0,
  28. min:0,
  29. title: {
  30. text: $G('atfwWithUnit')
  31. }
  32. },
  33. {
  34. type: 'continuous',
  35. valueType: 'numeric',
  36. tickInterval: 10,
  37. valueMarginsEnabled: true,
  38. minValueMargin: 0,
  39. maxValueMargin: 0,
  40. min: -10,
  41. max: 40,
  42. name: 'outtemp', // 외기
  43. position: 'right',
  44. //valueMarginsEnabled: true,
  45. //minValueMargin: 0,
  46. //maxValueMargin: 0,
  47. label: {
  48. font: { color: '#c96374' },
  49. //visible: true,
  50. //format: 'largeNumber'
  51. },
  52. title: {
  53. text: '외기온도 (°C)'
  54. }
  55. }
  56. ],
  57. series: [{
  58. name: '냉방ATF',
  59. argumentField: "DateTime",
  60. valueField: 'CV', // 냉수
  61. label: {
  62. visible: false,
  63. },
  64. point: { size: 8 }
  65. }, {
  66. name: '난방ATF',
  67. argumentField: "DateTime",
  68. valueField: 'HV', // 온수
  69. label: {
  70. visible: false,
  71. },
  72. point: { size: 8 }
  73. },
  74. {
  75. type: 'spline',
  76. axis: 'outtemp',
  77. color: '#c96374',
  78. valueField: 'Value',
  79. point: { size: 2 },
  80. name: '외기 온도',
  81. label: {
  82. font: { color: '#c96374', },
  83. visible: false,
  84. customizeText: function () {
  85. return this.valueText + ' °C';
  86. }
  87. }
  88. }],
  89. tooltip: {
  90. enabled: true,
  91. },
  92. crosshair: {
  93. enabled: true,
  94. width: 2,
  95. horizontalLine: {
  96. color: 'red',
  97. dashStyle: 'dash',
  98. visible: false
  99. },
  100. verticalLine: {
  101. color: 'black',
  102. dashStyle: 'dash',
  103. visible: true
  104. },
  105. label: {
  106. visible: true,
  107. backgroundColor: "#949494",
  108. font: {
  109. color: "#fff",
  110. size: 12,
  111. }
  112. }
  113. }
  114. };
  115. };
  116. });