qtzbMobileBody.htm 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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
  20. #8fcaee inset;
  21. background: -webkit-linear-gradient(top, #42a4e0, #2e88c0);
  22. background: -moz-linear-gradient(top, #42a4e0, #2e88c0);
  23. background: linear-gradient(top, #42a4e0, #2e88c0);
  24. }
  25. </style>
  26. <script>
  27. $(function() {
  28. Highcharts.setOptions({
  29. lang: {
  30. resetZoom: "重置"
  31. }
  32. });
  33. $('#container').highcharts({
  34. chart: {
  35. backgroundColor: "rgba(0,0,0,0)",
  36. margin: [30, 5, 50, 45],
  37. renderTo: "container"
  38. },
  39. colors: ["#3a8ecf", "#f6bd0f","#8bba00"],
  40. exporting: {
  41. enabled: false
  42. },
  43. title: {
  44. text: "氨气浓度全程线",
  45. style: {
  46. fontSize: 16
  47. },
  48. margin: 10
  49. },
  50. xAxis: {
  51. categories: eval($("#categories").val()),
  52. },
  53. yAxis: {
  54. title: {
  55. text: null
  56. },
  57. tickPixelInterval: 50,
  58. gridLineDashStyle: 'longdash'//Y轴网格线样式
  59. },
  60. tooltip: {
  61. valueDecimals: 2,
  62. valueSuffix: "ppm",
  63. followTouchMove: true,
  64. followPointer:true,
  65. shared: true,
  66. useHTML: true,
  67. crosshairs: [ {
  68. width: 2,
  69. color: "gray",
  70. dashStyle: "shortdot"
  71. }, {
  72. width: 2,
  73. color: "gray",
  74. dashStyle: "shortdot"
  75. } ]
  76. },
  77. legend: {
  78. layout: 'vertical',
  79. align: 'right',
  80. verticalAlign: "top",
  81. borderWidth: 0
  82. },
  83. credits: {
  84. enabled: false
  85. },
  86. plotOptions: {
  87. column: {
  88. pointPadding: 0.2,
  89. borderWidth: 0
  90. },
  91. series: {
  92. lineWidth: 2,
  93. marker: {
  94. enabled: true, //数据点是否显示
  95. radius: 2.5, //数据点大小
  96. }
  97. }
  98. },
  99. series: [{
  100. name: "氨气",
  101. data: eval($("#aqdata").val())
  102. }],
  103. });
  104. });
  105. function qtzbR(){
  106. loadZnsMain("qtzbr");
  107. if ($("#mcid").val() != null) {
  108. loadPtsTjt($("#mcid").val(), $("#zsid").val(), $("#lqid").val(), "qtzbr");
  109. }
  110. }
  111. </script>
  112. </head>
  113. <body>
  114. <input type="hidden" id="mcid" name="mcid" value="$!mcid"/>
  115. <input type="hidden" id="zsid" name="zsid" value="$!zsid">
  116. <input type="hidden" id="lqid" name="lqid" value="$!lqid">
  117. <input type="hidden" id="categories" name="categories" value="$!categories" />
  118. <input type="hidden" id="aqdata" name="aqdata" value="$!aqdata" />
  119. <input type="hidden" value="$!type" id="type">
  120. <div>
  121. <div style="float:right"><button type="button" class="button blue" onclick="qtzbR();" >全程线</button></div>
  122. <div id="container" style="height: 100%; width: 100%;"></div>
  123. </div>
  124. </body>
  125. </html>