b6a78bf06f89088b48375a82a0b158e260ad35cc.svn-base 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. $(function () {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. var A = BWA.ChartOptions.RefrigeratorAnalysis = BWA.ChartOptions.RefrigeratorAnalysis || {};
  4. var valueAxise2 = {
  5. //pane: 'topPane',
  6. name: 'eff',
  7. position: 'right',
  8. //valueMarginsEnabled: true,
  9. //minValueMargin: 0,
  10. //maxValueMargin: 0,
  11. //min: -20,
  12. //max: 40,
  13. label: {
  14. font: { color: '#00A7C6' },
  15. visible: true,
  16. //format: 'largeNumber'
  17. },
  18. title: {
  19. text: '효율 (%)'
  20. }
  21. }
  22. var series2 = {
  23. type: 'spline',
  24. color: '#00A7C6',
  25. //pane: 'topPane',
  26. axis: 'eff',
  27. valueField: 'eff',
  28. point: { size: 4 },
  29. //name: $G('outdoorTemperature'),
  30. label: {
  31. visible: false,
  32. font: { color: '#00A7C6', },
  33. customizeText: function () {
  34. return '효율 (%)';
  35. }
  36. }
  37. }
  38. /*
  39. C.getSeriesOptions = function (k) {
  40. return {
  41. };
  42. };*/
  43. A.getEFFSWChartOptions = function (codeTimeType) {
  44. return {
  45. palette: "Soft",
  46. legend: {
  47. visible: false
  48. },
  49. //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(moment(), codeTimeType),
  50. commonSeriesSettings: {
  51. argumentField: "DateTime",
  52. argumentType: 'string',
  53. selectionStyle: {
  54. hatching: {
  55. direction: "left"
  56. }
  57. }
  58. },
  59. valueAxis: [{
  60. title: {
  61. text: '보급수 유량 (m3/h)'
  62. }
  63. //}].concat(valueAxise2),
  64. }],
  65. series: [{
  66. type: 'bar',
  67. valueField: 'sw',
  68. argumentField: 'DateTime',
  69. label: {
  70. visible: false,
  71. //customizeText: function() {
  72. // return this.argumentField + this.valueText;
  73. //}
  74. },
  75. point: { size: 8 }
  76. }].concat(series2),
  77. tooltip: {
  78. enabled: true,
  79. },
  80. crosshair: {
  81. enabled: true,
  82. width: 2,
  83. horizontalLine: {
  84. color: 'red',
  85. dashStyle: 'dash',
  86. visible: true
  87. },
  88. verticalLine: {
  89. color: 'red',
  90. dashStyle: 'dash',
  91. visible: true
  92. },
  93. label: {
  94. visible: true,
  95. backgroundColor: "#949494",
  96. font: {
  97. color: "#fff",
  98. size: 12,
  99. }
  100. }
  101. }
  102. };
  103. };
  104. });