1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>活跃程度与日增重关系</title>
- <script type="text/javascript" src="views/tjfx/qttj/hycdrzz/hycdrzzTjt.js"></script>
- <script type="text/javascript">
- $(function() {
- Highcharts.setOptions({
- lang: {
- printChart: "打印图表",
- downloadJPEG: "导出JPEG图片",
- downloadPNG: "导出PNG图片",
- downloadPDF: "导出PDF文件",
- downloadSVG: "导出SVG文件"
- },
- global: {useUTC: false} //不使用时区
- });
-
- $("#chartDiv").highcharts({
- chart: {
- plotBackgroundColor: null,
- plotBorderWidth: null,
- plotShadow: false
- },
- exporting: {
- enabled: true
- },
- title: {
- text: "活跃程度与日增重关系",
- },
- credits: {
- enabled: false
- },
- tooltip: {
- pointFormat: "{series.name}: <b>{point.percentage:.1f}%</b>"
- },
- plotOptions: {
- pie: {
- allowPointSelect: true,
- cursor: "pointer",
- dataLabels: {
- enabled: true,
- color: "#000000",
- connectorColor: "#000000",
- format: "<b>{point.name}</b>:{point.percentage:.1f} %"
- }
- }
- },
- series: [{
- type: "pie",
- name: "百分比",
- data: eval("$!data")
- }]
- });
- });
- </script>
- </head>
- <body>
- <input type="hidden" id="mcid" value="$!mcid" />
- #set($display = "none")
- #if("$!hasData" == "true")
- #set($display = "block")
- #end
- <div style="position: absolute; margin-top: 10px; margin-left: 10px; z-index: 99; display: $display">
- <input type="button" value="发送报告" style="cursor: pointer;" onclick="sendHycdrzz()" />
- </div>
- <div id="chartDiv" style="height: 100%; width: 100%;"></div>
- </body>
- </html>
|