gkhwttlfx.jsp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ page import="java.text.SimpleDateFormat"%>
  4. <%@ include file="../../common.jsp"%>
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta charset="utf-8">
  9. <title>港口吞吐量分析</title>
  10. <meta name="viewport" content="width=device-width, initial-scale=1">
  11. <link rel="stylesheet" type="text/css" href="${app }/static/css/public.css" />
  12. <link rel="stylesheet" type="text/css" href="${app }/static/css/other.css" />
  13. <script type="text/javascript" src="${app }/static/js/highcharts.js"></script>
  14. <script type="text/javascript" src="${app }/static/js/highcharts-3d.js"></script>
  15. <script type="text/javascript" src="${app }/static/js/exporting.js"></script>
  16. </head>
  17. <script>
  18. $(document).ready(function () {
  19. initChart();
  20. });
  21. function initChart(){
  22. var a = [10,20,30,40,50,60];
  23. $('#container').highcharts({
  24. chart: {
  25. zoomType: 'xy'
  26. },
  27. title: {
  28. text: '货物吞吐量分析'
  29. },
  30. /* subtitle: {副标题
  31. text: 'Source: WorldClimate.com'
  32. }, */
  33. xAxis: [{
  34. categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
  35. 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
  36. crosshair: true
  37. }],
  38. yAxis: [{ // Primary yAxis
  39. labels: {
  40. format: '{value}吨',
  41. style: {
  42. color: Highcharts.getOptions().colors[1]
  43. }
  44. },
  45. title: {
  46. text: '货物吞吐量',
  47. style: {
  48. color: Highcharts.getOptions().colors[1]
  49. }
  50. }
  51. }, { // Secondary yAxis
  52. title: {
  53. text: '百分比',
  54. style: {
  55. color: Highcharts.getOptions().colors[0]
  56. }
  57. },
  58. labels: {
  59. format: '{value}%',
  60. style: {
  61. color: Highcharts.getOptions().colors[0]
  62. }
  63. },
  64. opposite: true
  65. }],
  66. tooltip: {
  67. shared: true
  68. },
  69. legend: {
  70. layout: 'vertical',
  71. align: 'left',
  72. x: 120,
  73. verticalAlign: 'top',
  74. y: 100,
  75. floating: true,
  76. backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
  77. },
  78. series: [{
  79. name: '吞吐量',
  80. type: 'column',
  81. yAxis: 1,
  82. data: a,//[49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
  83. tooltip: {
  84. valueSuffix: ' mm'
  85. }
  86. }, {
  87. name: '百分比',
  88. type: 'spline',
  89. data: a,//[7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6],
  90. tooltip: {
  91. valueSuffix: '°C'
  92. }
  93. }]
  94. });
  95. }
  96. </script>
  97. <body>
  98. <div>
  99. <table class="search_table" cellpadding="0" cellspacing="0">
  100. <tr>
  101. <th width="11%"></th>
  102. <th width="22%"></th>
  103. <th width="11%"></th>
  104. <th width="22%"></th>
  105. <th width="12%"></th>
  106. <th width="22%"></th>
  107. </tr>
  108. <tr>
  109. <td class="right">
  110. 请选择统计项:&nbsp;
  111. </td>
  112. <td>
  113. <span><select name="tjx" class="form-control" style="width: 80%">
  114. <option value="GK03010202000000000000000000">合计</option>
  115. <option value="GK03010202000010000000000000">进港</option>
  116. <option value="GK03010202000020000000000000">出港</option>
  117. </select></span>
  118. </td>
  119. <td class="right">
  120. 选择日期:&nbsp;
  121. </td>
  122. <td>
  123. <input id="d4311" class="Wdate" style="width:80%;" name="xkzstartDate" value="${xkzstartDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM',maxDate: '#F{$dp.$D(\'d4312\',{d:0})}'})">
  124. </td>
  125. <td class="middle">~</td>
  126. <td>
  127. <input id="d4312" class="Wdate" style="width:80%;" name="xkzendDate" value="${xkzendDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM',minDate: '#F{$dp.$D(\'d4311\',{d:0})}'})">
  128. </td>
  129. </tr>
  130. <tr>
  131. <td class="right">
  132. 请选择增长比率:&nbsp;
  133. </td>
  134. <td>
  135. <span><select name="zzbl" class="form-control" style="width: 80%">
  136. <option value="tb">同比</option>
  137. <option value="hb">环比</option>
  138. <option value="zs">增速</option>
  139. </select></span>
  140. </td>
  141. </tr>
  142. </table>
  143. </div>
  144. <div id="container" style="min-width:400px;height:400px"></div>
  145. </body>
  146. </html>