81a7db69d904118f39ca8c1a5be2facd20b2f586.svn-base 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. $(function () {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. BWA.ChartOptions.PowerSavingCycle = BWA.ChartOptions.PowerSavingCycle || {};
  4. BWA.ChartOptions.PowerSavingCycle.getChartFanLoadOptions = 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. {
  33. name: 'fan',
  34. position: 'left',
  35. type: 'continuous',
  36. valueType: 'numeric',
  37. label: {
  38. },
  39. title: {
  40. text: 'FAN 부하(KWh)'
  41. }
  42. }
  43. ],
  44. series: [
  45. {
  46. type: 'spline',
  47. name: '현재 FAN 부하',
  48. argumentField: "DateTime",
  49. valueField: 'FANLoad',
  50. axis: 'fan',
  51. label: {
  52. visible: false,
  53. },
  54. point: { size: 8 }
  55. }, {
  56. type: 'bar',
  57. name: '절감량',
  58. argumentField: "DateTime",
  59. valueField: 'Save',
  60. axis: 'fan',
  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. });