5812a576fa6116d99d7a9b4fb72c25d82f9f1493.svn-base 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. $(function () {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. BWA.ChartOptions.EnthalpyControl = BWA.ChartOptions.EnthalpyControl || {};
  4. BWA.ChartOptions.EnthalpyControl.getChartCoilLoadOptions = 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. title: {
  33. text: '코일부하(Kwh)'
  34. }
  35. },
  36. ],
  37. series: [{
  38. type: 'spline',
  39. name: '외기도입시 코일부하',
  40. argumentField: "DateTime",
  41. valueField: 'OutCoil',
  42. label: {
  43. visible: false,
  44. },
  45. point: { size: 8 }
  46. }, {
  47. type: 'spline',
  48. name: '환기회수시 코일부하',
  49. argumentField: "DateTime",
  50. valueField: 'InCoil',
  51. label: {
  52. visible: false,
  53. },
  54. point: { size: 8 }
  55. },
  56. {
  57. type: 'spline',
  58. name: '현재 코일부하',
  59. argumentField: "DateTime",
  60. valueField: 'Coil',
  61. label: {
  62. visible: false,
  63. },
  64. point: { size: 8 }
  65. }
  66. ],
  67. tooltip: {
  68. enabled: true,
  69. color: "#3e1717",
  70. format: 'fixedPoint',
  71. precision: 2,
  72. font: {
  73. color: "white",
  74. size: 12,
  75. weight: 600,
  76. },
  77. argumentFormat: 'shortDate',
  78. customizeText: function () {
  79. return {
  80. text: [this.argumentText, ': ', this.valueText].join('')
  81. };
  82. }
  83. },
  84. crosshair: {
  85. enabled: true,
  86. width: 2,
  87. horizontalLine: {
  88. color: 'limegreen',
  89. dashStyle: 'solid',
  90. visible: false
  91. },
  92. verticalLine: {
  93. color: 'limegreen',
  94. dashStyle: 'solid'
  95. },
  96. label: {
  97. visible: true,
  98. backgroundColor: "#949494",
  99. font: {
  100. color: "#fff",
  101. size: 12,
  102. }
  103. }
  104. }
  105. };
  106. };
  107. });