snwdMobileBody.htm 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <style type="text/css">
  5. .button {
  6. width: 50px;
  7. line-height: 20px;
  8. text-align: center;
  9. font-weight: bold;
  10. color: #fff;
  11. text-shadow: 1px 1px 1px #333;
  12. border-radius: 5px;
  13. margin: 0 0 0 10px;
  14. position: relative;
  15. overflow: hidden;
  16. }
  17. .button.blue {
  18. border: 0px solid #1e7db9;
  19. box-shadow: 0 1px 2px #8fcaee inset, 0 -1px 0 #497897 inset, 0 -2px 3px #8fcaee inset;
  20. background: -webkit-linear-gradient(top, #42a4e0, #2e88c0);
  21. background: -moz-linear-gradient(top, #42a4e0, #2e88c0);
  22. background: linear-gradient(top, #42a4e0, #2e88c0);
  23. }
  24. </style>
  25. <script>
  26. $(function() {
  27. $('#container').highcharts({
  28. chart : {
  29. backgroundColor: "rgba(0,0,0,0)",
  30. margin: [30, 5, 50, 45],
  31. renderTo : "container"
  32. },
  33. colors : [ "#3a8ecf", "#f6bd0f", "#8bba00" ],
  34. exporting : {
  35. enabled : false
  36. },
  37. title : {
  38. text : "温度全程线",
  39. style : {
  40. fontSize : 16
  41. },
  42. margin : 10
  43. },
  44. xAxis : {
  45. categories : eval($("#categories").val()),
  46. },
  47. yAxis : {
  48. title : {
  49. text : null
  50. },
  51. tickPixelInterval : 50,
  52. gridLineDashStyle : 'longdash'//Y轴网格线样式
  53. },
  54. tooltip : {
  55. valueDecimals : 2,
  56. valueSuffix : "℃",
  57. followTouchMove : true,
  58. followPointer : true,
  59. shared : true,
  60. useHTML : true,
  61. crosshairs : [ {
  62. width : 2,
  63. color : "gray",
  64. dashStyle : "shortdot"
  65. }, {
  66. width : 2,
  67. color : "gray",
  68. dashStyle : "shortdot"
  69. } ]
  70. },
  71. legend : {
  72. layout : 'vertical',
  73. align : 'right',
  74. verticalAlign : "top",
  75. borderWidth : 0
  76. },
  77. credits : {
  78. enabled : false
  79. },
  80. plotOptions : {
  81. column : {
  82. pointPadding : 0.2,
  83. borderWidth : 0
  84. },
  85. series : {
  86. marker : {
  87. enabled : true, //数据点是否显示
  88. radius : 3, //数据点大小
  89. },
  90. }
  91. },
  92. series : [ {
  93. name : "最高",
  94. data : eval($("#maxdata").val())
  95. }, {
  96. name : "最低",
  97. data : eval($("#mindata").val())
  98. }, {
  99. name : "平均",
  100. data : eval($("#pjdata").val())
  101. } ],
  102. });
  103. });
  104. function snwdR() {
  105. loadZnsMain("snwdr");
  106. if ($("#mcid").val() != null) {
  107. loadPtsTjt($("#mcid").val(), $("#zsid").val(), $("#lqid").val(), "snwdr");
  108. }
  109. }
  110. </script>
  111. </head>
  112. <body>
  113. <input type="hidden" id="mcid" name="mcid" value="$!mcid"/>
  114. <input type="hidden" id="zsid" name="zsid" value="$!zsid"/>
  115. <input type="hidden" id="lqid" name="lqid" value="$!lqid">
  116. <input type="hidden" id="categories" name="categories" value="$!categories" />
  117. <input type="hidden" id="maxdata" name="maxdata" value="$!maxdata" />
  118. <input type="hidden" id="mindata" name="mindata" value="$!mindata" />
  119. <input type="hidden" id="pjdata" name="pjdata" value="$!pjdata" />
  120. <input type="hidden" value="$!type" id="type">
  121. <div>
  122. <div style="float:right"><button type="button" class="button blue" onclick="snwdR();" >全程线</button></div>
  123. <div id="container" style="height: 100%; width: 100%;"></div>
  124. </div>
  125. </body>
  126. </html>