rzzMobileBody.htm 2.6 KB

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