161e4d4a093e5876c89018d40da56fb47940e533.svn-base 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. $(function() {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. var A = BWA.ChartOptions.RefrigeratorAnalysis = BWA.ChartOptions.RefrigeratorAnalysis || {};
  4. var valueAxise2 = {
  5. //pane: 'topPane',
  6. name: 'load',
  7. position: 'right',
  8. //valueMarginsEnabled: true,
  9. //minValueMargin: 0,
  10. //maxValueMargin: 0,
  11. //min: -20,
  12. //max: 40,
  13. label: {
  14. font: { color: '#c96374' },
  15. visible: true,
  16. //format: 'largeNumber'
  17. },
  18. title: {
  19. text: '부하율 (%)'
  20. }
  21. }
  22. var series2 = {
  23. type: 'scatter',
  24. color: '#c96374',
  25. //pane: 'topPane',
  26. axis: 'load',
  27. valueField: 'load',
  28. point: { size: 8, symbol: 'triangle' },
  29. name: '부하율',
  30. label: {
  31. visible: false,
  32. font: { color: '#c96374', },
  33. customizeText: function () {
  34. return '부하율' + '%';
  35. }
  36. }
  37. }
  38. /*
  39. C.getSeriesOptions = function (k) {
  40. return {
  41. };
  42. };*/
  43. A.getTemperatureCopChartOptions = function(codeTimeType) {
  44. return {
  45. palette: "Bright",
  46. legend: {
  47. visible: false,
  48. verticalAlignment: 'top',
  49. horizontalAlignment: 'center'
  50. },
  51. argumentAxis: {
  52. //max: 60,
  53. //min: 0,
  54. title: $G('coolingWaterInputTemperatureWithUnit')
  55. },
  56. commonSeriesSettings: {
  57. argumentField: "Temperature",
  58. selectionStyle: {
  59. hatching: {
  60. direction: "left"
  61. }
  62. }
  63. },
  64. valueAxis: [{
  65. title: {
  66. text: '냉동기 COP'
  67. }
  68. //}].concat(valueAxise2),
  69. }],
  70. series: [{
  71. type: 'scatter',
  72. valueField: 'Cop',
  73. argumentField: 'Temperature',
  74. name:'냉동기 COP',
  75. label: {
  76. visible: false,
  77. //customizeText: function() {
  78. // return this.argumentField + this.valueText;
  79. //}
  80. },
  81. point: { size: 8 }
  82. //}].concat(series2),
  83. }],
  84. tooltip: {
  85. enabled: true,
  86. },
  87. crosshair: {
  88. enabled: true,
  89. width: 2,
  90. horizontalLine: {
  91. color: 'red',
  92. dashStyle: 'dash',
  93. visible: true
  94. },
  95. verticalLine: {
  96. color: 'red',
  97. dashStyle: 'dash',
  98. visible: true
  99. },
  100. label: {
  101. visible: true,
  102. backgroundColor: "#949494",
  103. font: {
  104. color: "#fff",
  105. size: 12,
  106. }
  107. }
  108. }
  109. };
  110. };
  111. });