...
|
...
|
@@ -59,6 +59,11 @@ |
|
|
<div id="main12" class="my_main3"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="xhzb_wrap" style="height: 250px">
|
|
|
<div>
|
|
|
<div id="main13" class="my_main3"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -143,7 +148,7 @@ |
|
|
var monthDataX = JSON.parse('{$month}');
|
|
|
var monthDataY = JSON.parse('{$monthData}');
|
|
|
var monthMoney = JSON.parse('{$monthMoney}');
|
|
|
|
|
|
var Month_note_money = JSON.parse('{$Month_note_money}');
|
|
|
|
|
|
// 路径配置
|
|
|
require.config({
|
...
|
...
|
@@ -168,7 +173,7 @@ |
|
|
var myChart10 = ec.init(document.getElementById('main10'),'macarons');
|
|
|
var myChart11 = ec.init(document.getElementById('main11'),'macarons');
|
|
|
var myChart12 = ec.init(document.getElementById('main12'),'macarons');
|
|
|
|
|
|
var myChart13 = ec.init(document.getElementById('main13'),'macarons');
|
|
|
//时间段统计(柱形图)
|
|
|
var option = {
|
|
|
backgroundColor:'white',
|
...
|
...
|
@@ -546,6 +551,58 @@ |
|
|
}
|
|
|
]
|
|
|
};
|
|
|
var option13 = {
|
|
|
backgroundColor : "white",
|
|
|
color : ["#c05050","#59678c"],
|
|
|
title:{
|
|
|
text : '科室月营业额统计',
|
|
|
y: '15'
|
|
|
},
|
|
|
tooltip : {
|
|
|
trigger: 'axis',
|
|
|
|
|
|
showDelay: 0, // 显示延迟,添加显示延迟可以避免频繁切换,单位ms
|
|
|
formatter: "{b}</br>{a} : {c}元"
|
|
|
|
|
|
},
|
|
|
dataZoom : {
|
|
|
show : true,
|
|
|
realtime: true,
|
|
|
y : 220,
|
|
|
height: 20,
|
|
|
start : 75,
|
|
|
end : 100
|
|
|
},
|
|
|
calculable : true,
|
|
|
grid: {
|
|
|
x: 80,
|
|
|
y: 40,
|
|
|
x2:60,
|
|
|
},
|
|
|
xAxis : [
|
|
|
{
|
|
|
type : 'category',
|
|
|
boundaryGap : true,
|
|
|
data : monthDataX
|
|
|
}
|
|
|
],
|
|
|
yAxis : [
|
|
|
{
|
|
|
type : 'value',
|
|
|
scale:true,
|
|
|
|
|
|
}
|
|
|
],
|
|
|
series : [
|
|
|
{
|
|
|
name:'月统计',
|
|
|
type:'line',
|
|
|
//stack: '人数',
|
|
|
barWidth : 10,
|
|
|
data:Month_note_money
|
|
|
}
|
|
|
]
|
|
|
};
|
|
|
// 为echarts对象加载数据
|
|
|
myChart.setOption(option);
|
|
|
myChart2.setOption(option4);
|
...
|
...
|
@@ -553,6 +610,7 @@ |
|
|
myChart10.setOption(option10);
|
|
|
myChart11.setOption(option11);
|
|
|
myChart12.setOption(option12);
|
|
|
myChart13.setOption(option13);
|
|
|
// console.log({c});
|
|
|
}
|
|
|
);
|
...
|
...
|
|