f4b860b7c7abe29d6d01854fba7988f9767fc766.svn-base 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. $(function () {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. BWA.ChartOptions.EnthalpyControl = BWA.ChartOptions.EnthalpyControl || {};
  4. BWA.ChartOptions.EnthalpyControl.getChartControlEnthalpyOptions = 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: '엔탈피(kJ/kg)'
  34. }
  35. },
  36. ],
  37. series: [{
  38. type: 'spline',
  39. name: '외기 엔탈피',
  40. argumentField: "DateTime",
  41. valueField: 'outdoorEnthalpy',
  42. label: {
  43. visible: false,
  44. },
  45. point: { size: 8 }
  46. }, {
  47. type: 'spline',
  48. name: '실내 엔탈피',
  49. argumentField: "DateTime",
  50. valueField: 'IndoorEnthalpy',
  51. label: {
  52. visible: false,
  53. },
  54. point: { size: 8 }
  55. },
  56. ],
  57. tooltip: {
  58. enabled: true,
  59. color: "#3e1717",
  60. format: 'fixedPoint',
  61. precision: 2,
  62. font: {
  63. color: "white",
  64. size: 12,
  65. weight: 600,
  66. },
  67. argumentFormat: 'shortDate',
  68. customizeText: function () {
  69. return {
  70. text: [this.argumentText, ': ', this.valueText].join('')
  71. };
  72. }
  73. },
  74. crosshair: {
  75. enabled: true,
  76. width: 2,
  77. horizontalLine: {
  78. color: 'limegreen',
  79. dashStyle: 'solid',
  80. visible: false
  81. },
  82. verticalLine: {
  83. color: 'limegreen',
  84. dashStyle: 'solid'
  85. },
  86. label: {
  87. visible: true,
  88. backgroundColor: "#949494",
  89. font: {
  90. color: "#fff",
  91. size: 12,
  92. }
  93. }
  94. }
  95. };
  96. };
  97. });