baeb0c41ec02326ad6f020b646054361eb5fce11.svn-base 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. $(function() {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. BWA.ChartOptions.WaterUAnalysis = BWA.ChartOptions.WaterUAnalysis || {};
  4. BWA.ChartOptions.WaterUAnalysis.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: 'sw', //
  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: 'sw', //
  61. position: 'right',
  62. label: {
  63. visible: true,
  64. },
  65. title: {
  66. text: '시수 (m3/h)'
  67. }
  68. }*/
  69. ],
  70. series: [
  71. /* {
  72. axis: 'rw',
  73. type: 'line',
  74. name: '우수',
  75. argumentField: "DateTime",
  76. valueField: 'rw', //
  77. label: {
  78. visible: false,
  79. },
  80. point: { size: 8 },
  81. },*/
  82. {
  83. axis: 'lev',
  84. name: '저수조 수위',
  85. type: 'bar',
  86. valueField: 'lev',
  87. point: { size: 4, symbol: 'triangle' },
  88. label: {
  89. visible: false,
  90. }
  91. },
  92. {
  93. axis: 'sw',
  94. name: '시수 사용량',
  95. type: 'spline',
  96. color: 'red',
  97. valueField: 'sw',
  98. //point: { size: 8, symbol: 'triangle' },
  99. point: { size: 8 },
  100. label: {
  101. visible: false,
  102. }
  103. }],
  104. tooltip: {
  105. enabled: true,
  106. },
  107. crosshair: {
  108. enabled: true,
  109. width: 2,
  110. horizontalLine: {
  111. color: 'red',
  112. dashStyle: 'dash',
  113. visible: false
  114. },
  115. verticalLine: {
  116. color: 'black',
  117. dashStyle: 'dash',
  118. visible: true
  119. },
  120. label: {
  121. visible: true,
  122. backgroundColor: "#949494",
  123. font: {
  124. color: "#fff",
  125. size: 12,
  126. }
  127. }
  128. }
  129. };
  130. };
  131. });