...
|
...
|
@@ -62,7 +62,7 @@ |
|
|
$(document).ready(function() {
|
|
|
//初始化切换
|
|
|
$(".animsition").animsition({
|
|
|
|
|
|
|
|
|
inClass : 'fade-in-right',
|
|
|
outClass : 'fade-out',
|
|
|
inDuration : 1500,
|
...
|
...
|
@@ -78,24 +78,24 @@ |
|
|
],
|
|
|
//"unSupportCss" option allows you to disable the "animsition" in case the css property in the array is not supported by your browser.
|
|
|
//The default setting is to disable the "animsition" in a browser that does not support "animation-duration".
|
|
|
|
|
|
|
|
|
overlay : false,
|
|
|
|
|
|
|
|
|
overlayClass : 'animsition-overlay-slide',
|
|
|
overlayParentElement : 'body'
|
|
|
});
|
|
|
|
|
|
//医院总体时长横坐标数据
|
|
|
var totalDateX = Number('{$hospital}');
|
|
|
var totalDateX = JSON.parse('{$hospital}');
|
|
|
//医院总体时长纵坐标数据
|
|
|
var totalDateY = Number('{$num}');
|
|
|
var totalDateY = JSON.parse('{$num}');
|
|
|
|
|
|
|
|
|
|
|
|
//时间段统计数据
|
|
|
var dateX = ['21点-7点','7点-12点','12点-17点','17点-21点'];
|
|
|
|
|
|
var dateY = Number('{$interval}');
|
|
|
var dateY = JSON.parse('{$interval}');
|
|
|
|
|
|
var num=0;
|
|
|
|
...
|
...
|
@@ -108,13 +108,13 @@ |
|
|
//周统计数据
|
|
|
var weekDataX = ["第一周","第二周","第三周","第四周","第五周","第六周", "第七周",
|
|
|
"第八周","第九周","第十周","第十一周","第十二周","第十三周","第十四周","第十五周"];
|
|
|
var weekDataY = Number('{$weekData}');
|
|
|
var weekDataY = JSON.parse('{$weekData}');
|
|
|
|
|
|
//月统计数据
|
|
|
var monthDataX = ["第一月","第二月","第三月","第四月","第五月","第六月", "第七月",
|
|
|
"第八月","第九月","第十月","第十一月","第十二月","第十三月","第十四月","第十五月",
|
|
|
"第十六月","第十七月","第十八月","第十九月","第二十月","第二十一月","第二十二月","第二十三月","第二十四月"];
|
|
|
var monthDataY = Number('{$monthData}');
|
|
|
var monthDataY = JSON.parse('{$monthData}');
|
|
|
|
|
|
|
|
|
|
...
|
...
|
@@ -124,7 +124,7 @@ |
|
|
echarts: 'http://echarts.baidu.com/build/dist'
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
// 使用
|
|
|
require(
|
|
|
[
|
...
|
...
|
@@ -199,7 +199,7 @@ |
|
|
type:'bar',
|
|
|
//stack: '总量',
|
|
|
barMaxWidth : 15,
|
|
|
|
|
|
|
|
|
itemStyle:{
|
|
|
normal:{
|
|
|
borderWidth : 3
|
...
|
...
|
@@ -278,7 +278,7 @@ |
|
|
},
|
|
|
data:totalDateY
|
|
|
}
|
|
|
|
|
|
|
|
|
]
|
|
|
};
|
|
|
//时间段统计(饼状图)
|
...
|
...
|
@@ -300,7 +300,7 @@ |
|
|
mark : {show: true},
|
|
|
dataView : {show: true, readOnly: false},
|
|
|
magicType : {
|
|
|
show: true,
|
|
|
show: true,
|
|
|
type: ['pie', 'funnel'],
|
|
|
option: {
|
|
|
funnel: {
|
...
|
...
|
@@ -467,8 +467,8 @@ |
|
|
]
|
|
|
};
|
|
|
|
|
|
// 为echarts对象加载数据
|
|
|
myChart.setOption(option);
|
|
|
// 为echarts对象加载数据
|
|
|
myChart.setOption(option);
|
|
|
myChart2.setOption(option4);
|
|
|
myChart4.setOption(option2);
|
|
|
myChart10.setOption(option10);
|
...
|
...
|
|