3dc567f42a51a2e01e1fdbc6d60c3870ea5cf3b3.svn-base 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <!--框架必需start-->
  10. <script type="text/javascript" src="<%=path%>/libs/js/jquery.js"></script>
  11. <script type="text/javascript" src="<%=path%>/libs/js/language/cn.js"></script>
  12. <script type="text/javascript" src="<%=path%>/libs/js/framework.js"></script>
  13. <link href="<%=path%>/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  14. <link rel="stylesheet" type="text/css" id="skin" prePath="<%=path%>/"/>
  15. <link rel="stylesheet" type="text/css" id="customSkin"/>
  16. <!--框架必需end-->
  17. <script src="<%=path%>/libs/thirdparty/highcharts/js/highcharts.js"></script>
  18. <script src="<%=path%>/libs/thirdparty/highcharts/js/highcharts-more.js"></script>
  19. <script>
  20. $(function () {
  21. var ranges = [
  22. [1246406400000, 14.3, 27.7],
  23. [1246492800000, 14.5, 27.8],
  24. [1246579200000, 15.5, 29.6],
  25. [1246665600000, 16.7, 30.7],
  26. [1246752000000, 16.5, 25.0],
  27. [1246838400000, 17.8, 25.7],
  28. [1246924800000, 13.5, 24.8],
  29. [1247011200000, 10.5, 21.4],
  30. [1247097600000, 9.2, 23.8],
  31. [1247184000000, 11.6, 21.8],
  32. [1247270400000, 10.7, 23.7],
  33. [1247356800000, 11.0, 23.3],
  34. [1247443200000, 11.6, 23.7],
  35. [1247529600000, 11.8, 20.7],
  36. [1247616000000, 12.6, 22.4],
  37. [1247702400000, 13.6, 19.6],
  38. [1247788800000, 11.4, 22.6],
  39. [1247875200000, 13.2, 25.0],
  40. [1247961600000, 14.2, 21.6],
  41. [1248048000000, 13.1, 17.1],
  42. [1248134400000, 12.2, 15.5],
  43. [1248220800000, 12.0, 20.8],
  44. [1248307200000, 12.0, 17.1],
  45. [1248393600000, 12.7, 18.3],
  46. [1248480000000, 12.4, 19.4],
  47. [1248566400000, 12.6, 19.9],
  48. [1248652800000, 11.9, 20.2],
  49. [1248739200000, 11.0, 19.3],
  50. [1248825600000, 10.8, 17.8],
  51. [1248912000000, 11.8, 18.5],
  52. [1248998400000, 10.8, 16.1]
  53. ];
  54. $('#container').highcharts({
  55. chart: {
  56. type: 'arearange',
  57. zoomType: 'x'
  58. },
  59. title: {
  60. text: '每日气温'
  61. },
  62. subtitle: {
  63. text: document.ontouchstart === undefined ?
  64. '框选放大' :
  65. '手势放大'
  66. },
  67. xAxis: {
  68. type: 'datetime'
  69. },
  70. yAxis: {
  71. title: {
  72. text: null
  73. }
  74. },
  75. tooltip: {
  76. crosshairs: true,
  77. shared: true,
  78. valueSuffix: '°C'
  79. },
  80. legend: {
  81. enabled: false
  82. },
  83. series: [{
  84. name: '温度',
  85. data: ranges
  86. }]
  87. });
  88. });
  89. </script>
  90. </head>
  91. <body>
  92. <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
  93. </body>
  94. </html>