1cab377b27043ff8d643498fa29cfdcd7b3224e3.svn-base 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. $(function () {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. BWA.ChartOptions.WaterRAnalysis = BWA.ChartOptions.WaterRAnalysis || {};
  4. BWA.ChartOptions.WaterRAnalysis.getChartEffiOptions = 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. commonSeriesSettings: {
  14. argumentField: "DateTime",
  15. selectionStyle: {
  16. hatching: {
  17. direction: "left"
  18. }
  19. }
  20. },
  21. argumentAxis:
  22. {
  23. argumentType: 'DateTime',
  24. label: {
  25. alignment: 'center',
  26. format: 'dd일 HH시'
  27. },
  28. tickInterval: { hours: 1 },
  29. },
  30. valueAxis: [
  31. {
  32. name: 'rw', //
  33. //position: 'right',
  34. label: {
  35. //font: { color: '#c96374' },
  36. visible: true,
  37. },
  38. title: {
  39. text: '사용량 (m3)'
  40. }
  41. },
  42. {
  43. name: 'lev', //
  44. tickInterval: 10,
  45. valueMarginsEnabled: true,
  46. minValueMargin: 0,
  47. maxValueMargin: 0,
  48. //argumentType: 'numeric',
  49. min: 0,
  50. max: 100,
  51. position: 'right',
  52. label: {
  53. visible: true,
  54. },
  55. title: {
  56. text: '수위 (%)'
  57. }
  58. },
  59. {
  60. name: 'lev2', //
  61. tickInterval: 10,
  62. valueMarginsEnabled: true,
  63. minValueMargin: 0,
  64. maxValueMargin: 0,
  65. //argumentType: 'numeric',
  66. min: 0,
  67. max: 100,
  68. position: 'right',
  69. label: {
  70. visible: false,
  71. },
  72. }
  73. ],
  74. series: [
  75. {
  76. axis: 'lev',
  77. name: '우수조 저장조 수위', //수정
  78. type: 'bar',
  79. valueField: 'lev',
  80. point: { size: 4, symbol: 'triangle' },
  81. label: {
  82. visible: false,
  83. }
  84. },
  85. {
  86. axis: 'lev2',
  87. name: '우수조 처리조 수위', //수정
  88. type: 'bar',
  89. valueField: 'lev2',
  90. point: { size: 4, symbol: 'triangle' },
  91. label: {
  92. visible: false,
  93. }
  94. },
  95. {
  96. axis: 'rw',
  97. type: 'spline',
  98. name: '우수 사용량',
  99. color: 'red',
  100. argumentField: "DateTime",
  101. valueField: 'rw', //
  102. label: {
  103. visible: false,
  104. },
  105. point: { size: 8 },
  106. },
  107. {
  108. axis: 'rw',
  109. name: '보충 시수량',
  110. type: 'spline',
  111. color: 'blue',
  112. valueField: 'sw',
  113. point: { size: 8, symbol: 'triangle' },
  114. label: {
  115. visible: false,
  116. }
  117. }
  118. ],
  119. tooltip: {
  120. enabled: true,
  121. },
  122. crosshair: {
  123. enabled: true,
  124. width: 2,
  125. horizontalLine: {
  126. color: 'red',
  127. dashStyle: 'dash',
  128. visible: false
  129. },
  130. verticalLine: {
  131. color: 'black',
  132. dashStyle: 'dash',
  133. visible: true
  134. },
  135. label: {
  136. visible: true,
  137. backgroundColor: "#949494",
  138. font: {
  139. color: "#fff",
  140. size: 12,
  141. }
  142. }
  143. }
  144. };
  145. };
  146. });