| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!-- context path -->
- <t:base type="jquery,easyui"></t:base>
- <script type="text/javascript" src="plug-in/Highcharts-2.2.5/js/highcharts.src.js"></script>
- <script type="text/javascript" src="plug-in/Highcharts-2.2.5/js/modules/exporting.src.js"></script>
- <c:set var="ctxPath" value="${pageContext.request.contextPath}" />
- <script type="text/javascript">
- $(function() {
- $(document).ready(function() {
- var chart;
- $.ajax({
- type : "POST",
- url : "jeecgListDemoController.do?broswerCount&reportType=line",
- success : function(jsondata) {
- data = eval(jsondata);
- chart = new Highcharts.Chart({
- chart : {
- renderTo : 'containerline',
- plotBackgroundColor : null,
- plotBorderWidth : null,
- plotShadow : false
- },
- title : {
- text : '<t:mutiLang langKey="broswer.count.analysis"/>-<b><t:mutiLang langKey="common.line.chart"/></b>'
- },
- xAxis : {
- categories : [ '1', '2', '3', '4', '5','6','7','8']
- },
- tooltip : {
- shadow: false,
- percentageDecimals : 1,
- formatter: function() {
- return '<b>'+this.point.name + '</b>:' + Highcharts.numberFormat(this.percentage, 1) +'%';
- }
- },
- exporting:{
- filename:'pie',
- url:'${ctxPath}/jeecgListDemoController.do?export'
- },
- plotOptions : {
- pie : {
- allowPointSelect : true,
- cursor : 'pointer',
- showInLegend : true,
- dataLabels : {
- enabled : true,
- color : '#000000',
- connectorColor : '#000000',
- formatter : function() {
- return '<b>' + this.point.name + '</b>: ' + Highcharts.numberFormat(this.percentage, 1)+"%";
- }
- }
- }
- },
- series : data
- });
- }
- });
- });
- });
- </script>
- <script type="text/javascript">
- $(function() {
- $(document).ready(function() {
- var chart;
- $.ajax({
- type : "POST",
- url : "jeecgListDemoController.do?broswerCount&reportType=column",
- success : function(jsondata) {
-
- data = eval(jsondata);
- console.log(data);
- chart = new Highcharts.Chart({
- chart : {
- renderTo : 'containerCol',
- plotBackgroundColor : null,
- plotBorderWidth : null,
- plotShadow : false
- },
- title : {
- text : '<t:mutiLang langKey="broswer.count.analysis"/>-<b><t:mutiLang langKey="common.histogram"/></b>'
- },
- xAxis : {
- //update-begin--Author:weict Date:20170515 for:TASK #1973 【demo 问题】综合报表挤一块了,少点数据,提高效果--------------------
- categories : [ 'Chrome', 'Firefox', 'IE', 'MSIE 7.0', 'MSIE 8.0','MSIE 9.0','rv:11.0','Safari']
- //update-end--Author:weict Date:20170515 for:TASK #1973 【demo 问题】综合报表挤一块了,少点数据,提高效果----------------------
- },
- tooltip : {
- percentageDecimals : 1,
- formatter: function() {
- return '<b>'+this.point.name + '</b>:' + Highcharts.numberFormat(this.percentage, 1) +'%';
- }
- },
- exporting:{
- filename:'column',
- url:'${ctxPath}/jeecgListDemoController.do?export'//
- },
- plotOptions : {
- column : {
- allowPointSelect : true,
- cursor : 'pointer',
- showInLegend : true,
- dataLabels : {
- enabled : true,
- color : '#000000',
- connectorColor : '#000000',
- formatter : function() {
- //update-begin--Author:weict Date:20170515 for:TASK #1973 【demo 问题】综合报表挤一块了,少点数据,提高效果--------------------
- return Highcharts.numberFormat(this.percentage, 1)+"%";
- //update-end--Author:weict Date:20170515 for:TASK #1973 【demo 问题】综合报表挤一块了,少点数据,提高效果----------------------
- }
- }
- }
- },
- series:data,
- });
- }
- });
- });
- });
- </script>
- <script type="text/javascript">
- $(function() {
- $(document).ready(function() {
- var chart;
- $.ajax({
- type : "POST",
- url : "jeecgListDemoController.do?broswerCount&reportType=pie",
- success : function(jsondata) {
- data = eval(jsondata);
- chart = new Highcharts.Chart({
- chart : {
- renderTo : 'containerPie',
- plotBackgroundColor : null,
- plotBorderWidth : null,
- plotShadow : false
- },
- title : {
- text : '<t:mutiLang langKey="broswer.count.analysis"/>-<b><t:mutiLang langKey="common.pie.chart"/></b>'
- },
- xAxis : {
- categories : [ '1', '2', '3', '4', '5']
- },
- tooltip : {
- shadow: false,
- percentageDecimals : 1,
- formatter: function() {
- return '<b>'+this.point.name + '</b>:' + Highcharts.numberFormat(this.percentage, 1) +'%';
- }
- },
- exporting:{
- filename:'pie',
- url:'${ctxPath}/jeecgListDemoController.do?export'
- },
- plotOptions : {
- pie : {
- allowPointSelect : true,
- cursor : 'pointer',
- showInLegend : true,
- dataLabels : {
- enabled : true,
- color : '#000000',
- connectorColor : '#000000',
- formatter : function() {
- return '<b>' + this.point.name + '</b>: ' + Highcharts.numberFormat(this.percentage, 1)+"%";
- }
- }
- }
- },
- series : data
- });
- }
- });
- });
- });
- </script>
- <span id="containerline" style="float: left; width: 30%; height: 60%"></span>
- <span id="containerCol" style="float: left; width: 38%; height: 60%"></span>
- <span id="containerPie" style="width: 30%; height: 60%"></span>
- <div style="width: 100%; height: 38%;">
- <t:datagrid name="broswerStatisticList" title="broswer.count.statistics" actionUrl="jeecgListDemoController.do?listAllStatisticByJdbc" idField="id" fit="true">
- <t:dgCol title="common.code" field="id" hidden="true"></t:dgCol>
- <t:dgCol title="lang.broswer" field="broswer" width="130"></t:dgCol>
- <t:dgCol title="number.broswer" field="broswercount" width="130"></t:dgCol>
- <t:dgCol title="common.proportion" field="rate" width="130"></t:dgCol>
- </t:datagrid>
- </div>
- <script type="text/javascript">
- $(function(){
- $(document.body).css("width","99.3%");
- });
- </script>
- <!-- add-update--Author:jg_renjie Date:20150613 for:页面自适应页面,不会出现左右滚动条 -->
|