d3336ee0009c581e79c72ce7c1d986bb8fa755d3.svn-base 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. $(function() {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. BWA.ChartOptions.WaterCoolingAnalysis = BWA.ChartOptions.WaterCoolingAnalysis || {};
  4. BWA.ChartOptions.WaterCoolingAnalysis.getChartVOpenOptions = function(codeTimeType) {
  5. return {
  6. palette: "Soft",
  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. {
  23. name: 'vopen',
  24. title: {
  25. text: '냉/난방 밸드개도율'
  26. }
  27. },
  28. {
  29. type: 'continuous',
  30. valueType: 'numeric',
  31. tickInterval: 10,
  32. valueMarginsEnabled: true,
  33. minValueMargin: 0,
  34. maxValueMargin: 0,
  35. min: -10,
  36. max: 40,
  37. position: 'right',
  38. name: 'temperature',
  39. title: {
  40. text: $G('outdoorTemperatureWithUnit')
  41. },
  42. label: {
  43. font: { color: '#c96374' },
  44. visible: true,
  45. },
  46. }],
  47. series: [ {
  48. type: 'bar',
  49. axis: 'vopen',
  50. valueField: 'CV',
  51. name: '냉방밸드 개도율',
  52. label: {
  53. visible: false,
  54. customizeText: function() {
  55. return this.valueText + ' (%)';
  56. }
  57. },
  58. point: { size: 8 }
  59. }, {
  60. type: 'bar',
  61. axis: 'vopen',
  62. valueField: 'HV',
  63. name: '난방밸드 개도율',
  64. label: {
  65. visible: false,
  66. customizeText: function() {
  67. return this.valueText + ' (%)';
  68. }
  69. },
  70. point: { size: 8 }
  71. },
  72. {
  73. type: 'spline',
  74. valueField: 'Value',
  75. axis: 'temperature',
  76. name: $G('outdoorTemperature'),
  77. label: {
  78. visible: false,
  79. customizeText: function() {
  80. return this.valueText + '°C';
  81. }
  82. },
  83. point: { size: 1 }
  84. },
  85. ],
  86. tooltip: {
  87. enabled: true,
  88. },
  89. crosshair: {
  90. enabled: true,
  91. width: 2,
  92. horizontalLine: {
  93. color: 'red',
  94. dashStyle: 'dash',
  95. visible: false
  96. },
  97. verticalLine: {
  98. color: 'black',
  99. dashStyle: 'dash',
  100. visible: true
  101. },
  102. label: {
  103. visible: true,
  104. backgroundColor: "#949494",
  105. font: {
  106. color: "#fff",
  107. size: 12,
  108. }
  109. }
  110. }
  111. };
  112. }
  113. });