85 lines
2.2 KiB
Plaintext
85 lines
2.2 KiB
Plaintext
<%@page import="com.tenwa.homepage.WelcomeAction"%>
|
|
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@include file="/Frame/page/jspf/include/jsp_runtime_context.jspf"
|
|
%><%@include file="/Frame/page/jspf/include/jsp_sqlca_head.jspf"
|
|
%>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
|
|
</head>
|
|
<script type="text/javascript" src="<%=sWebRootPath %>/Accounting/js/highcharts/jquery.js"></script>
|
|
<script type="text/javascript" src="<%=sWebRootPath %>/Accounting/js/highcharts/highcharts.js"></script>
|
|
<script type="text/javascript">
|
|
var chart=null;
|
|
var oOptions={
|
|
chart: {
|
|
renderTo: 'container',
|
|
type: 'line',
|
|
marginRight: 0,
|
|
marginBottom: 25
|
|
},
|
|
title: {
|
|
text: ' ',
|
|
x: -20 //center
|
|
},
|
|
xAxis: {
|
|
categories: ['1月', '2月', '3月', '4月', '5月', '6月',
|
|
'7月', '8月', '9月', '10月', '11月', '12月']
|
|
},
|
|
yAxis: {
|
|
title: {
|
|
text: '单位:万元'
|
|
},
|
|
plotLines: [{
|
|
value: 0,
|
|
width: 2,
|
|
color: '#808080'
|
|
}]
|
|
},
|
|
tooltip: {
|
|
formatter: function() {
|
|
return '<b>'+ this.series.name +'</b><br/><br/>'+
|
|
this.x +': '+ this.y +'万元';
|
|
}
|
|
},
|
|
legend: {
|
|
layout: 'vertical',
|
|
align: 'right',
|
|
verticalAlign: 'top',
|
|
x: -20,
|
|
y: 200,
|
|
borderWidth: 0
|
|
},
|
|
series: [{
|
|
name: '投放金额',
|
|
data: [22, 22, 95, 245, 282, 225, 252, 265, 222, 282, 229, 96]
|
|
},{name: '起租金额',
|
|
data: [22, 22, 95, 245, 282, 225, 252, 265, 222, 282, 229, 96]}]
|
|
};
|
|
|
|
window.onload= function(){
|
|
|
|
var sPaymentMoney ="<%=WelcomeAction.getPaymentMoney()%>";
|
|
var sOnhireMoney ="<%=WelcomeAction.getOnhireMoney()%>";
|
|
var data=[];
|
|
sPaymentMoney=sPaymentMoney.split("@");
|
|
for(var i=0;i<sPaymentMoney.length;i++){
|
|
data.push(parseFloat(sPaymentMoney[i]));
|
|
}
|
|
oOptions.series[0].data=data;
|
|
data=[];
|
|
sOnhireMoney=sOnhireMoney.split("@");
|
|
for(var i=0;i<sOnhireMoney.length;i++){
|
|
data.push(parseFloat(sOnhireMoney[i]));
|
|
}
|
|
oOptions.series[1].data=data;
|
|
chart = new Highcharts.Chart(oOptions);
|
|
};
|
|
</script>
|
|
<body>
|
|
<div>
|
|
<div id="container" style="width:100%; height:100%; margin: 0 auto"></div>
|
|
</div>
|
|
</body>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |