hycdrzzTjt.htm 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>活跃程度与日增重关系</title>
  6. <script type="text/javascript" src="views/tjfx/qttj/hycdrzz/hycdrzzTjt.js"></script>
  7. <script type="text/javascript">
  8. $(function() {
  9. Highcharts.setOptions({
  10. lang: {
  11. printChart: "打印图表",
  12. downloadJPEG: "导出JPEG图片",
  13. downloadPNG: "导出PNG图片",
  14. downloadPDF: "导出PDF文件",
  15. downloadSVG: "导出SVG文件"
  16. },
  17. global: {useUTC: false} //不使用时区
  18. });
  19. $("#chartDiv").highcharts({
  20. chart: {
  21. plotBackgroundColor: null,
  22. plotBorderWidth: null,
  23. plotShadow: false
  24. },
  25. exporting: {
  26. enabled: true
  27. },
  28. title: {
  29. text: "活跃程度与日增重关系",
  30. },
  31. credits: {
  32. enabled: false
  33. },
  34. tooltip: {
  35. pointFormat: "{series.name}: <b>{point.percentage:.1f}%</b>"
  36. },
  37. plotOptions: {
  38. pie: {
  39. allowPointSelect: true,
  40. cursor: "pointer",
  41. dataLabels: {
  42. enabled: true,
  43. color: "#000000",
  44. connectorColor: "#000000",
  45. format: "<b>{point.name}</b>:{point.percentage:.1f} %"
  46. }
  47. }
  48. },
  49. series: [{
  50. type: "pie",
  51. name: "百分比",
  52. data: eval("$!data")
  53. }]
  54. });
  55. });
  56. </script>
  57. </head>
  58. <body>
  59. <input type="hidden" id="mcid" value="$!mcid" />
  60. #set($display = "none")
  61. #if("$!hasData" == "true")
  62. #set($display = "block")
  63. #end
  64. <div style="position: absolute; margin-top: 10px; margin-left: 10px; z-index: 99; display: $display">
  65. <input type="button" value="发送报告" style="cursor: pointer;" onclick="sendHycdrzz()" />
  66. </div>
  67. <div id="chartDiv" style="height: 100%; width: 100%;"></div>
  68. </body>
  69. </html>