1452cf5975f59d7a4257d99636393355835650cb.svn-base 3.6 KB

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