正在显示
1 个修改的文件
包含
14 行增加
和
14 行删除
@@ -62,7 +62,7 @@ | @@ -62,7 +62,7 @@ | ||
62 | $(document).ready(function() { | 62 | $(document).ready(function() { |
63 | //初始化切换 | 63 | //初始化切换 |
64 | $(".animsition").animsition({ | 64 | $(".animsition").animsition({ |
65 | - | 65 | + |
66 | inClass : 'fade-in-right', | 66 | inClass : 'fade-in-right', |
67 | outClass : 'fade-out', | 67 | outClass : 'fade-out', |
68 | inDuration : 1500, | 68 | inDuration : 1500, |
@@ -78,24 +78,24 @@ | @@ -78,24 +78,24 @@ | ||
78 | ], | 78 | ], |
79 | //"unSupportCss" option allows you to disable the "animsition" in case the css property in the array is not supported by your browser. | 79 | //"unSupportCss" option allows you to disable the "animsition" in case the css property in the array is not supported by your browser. |
80 | //The default setting is to disable the "animsition" in a browser that does not support "animation-duration". | 80 | //The default setting is to disable the "animsition" in a browser that does not support "animation-duration". |
81 | - | 81 | + |
82 | overlay : false, | 82 | overlay : false, |
83 | - | 83 | + |
84 | overlayClass : 'animsition-overlay-slide', | 84 | overlayClass : 'animsition-overlay-slide', |
85 | overlayParentElement : 'body' | 85 | overlayParentElement : 'body' |
86 | }); | 86 | }); |
87 | 87 | ||
88 | //医院总体时长横坐标数据 | 88 | //医院总体时长横坐标数据 |
89 | - var totalDateX = Number('{$hospital}'); | 89 | + var totalDateX = JSON.parse('{$hospital}'); |
90 | //医院总体时长纵坐标数据 | 90 | //医院总体时长纵坐标数据 |
91 | - var totalDateY = Number('{$num}'); | 91 | + var totalDateY = JSON.parse('{$num}'); |
92 | 92 | ||
93 | 93 | ||
94 | 94 | ||
95 | //时间段统计数据 | 95 | //时间段统计数据 |
96 | var dateX = ['21点-7点','7点-12点','12点-17点','17点-21点']; | 96 | var dateX = ['21点-7点','7点-12点','12点-17点','17点-21点']; |
97 | 97 | ||
98 | - var dateY = Number('{$interval}'); | 98 | + var dateY = JSON.parse('{$interval}'); |
99 | 99 | ||
100 | var num=0; | 100 | var num=0; |
101 | 101 | ||
@@ -108,13 +108,13 @@ | @@ -108,13 +108,13 @@ | ||
108 | //周统计数据 | 108 | //周统计数据 |
109 | var weekDataX = ["第一周","第二周","第三周","第四周","第五周","第六周", "第七周", | 109 | var weekDataX = ["第一周","第二周","第三周","第四周","第五周","第六周", "第七周", |
110 | "第八周","第九周","第十周","第十一周","第十二周","第十三周","第十四周","第十五周"]; | 110 | "第八周","第九周","第十周","第十一周","第十二周","第十三周","第十四周","第十五周"]; |
111 | - var weekDataY = Number('{$weekData}'); | 111 | + var weekDataY = JSON.parse('{$weekData}'); |
112 | 112 | ||
113 | //月统计数据 | 113 | //月统计数据 |
114 | var monthDataX = ["第一月","第二月","第三月","第四月","第五月","第六月", "第七月", | 114 | var monthDataX = ["第一月","第二月","第三月","第四月","第五月","第六月", "第七月", |
115 | "第八月","第九月","第十月","第十一月","第十二月","第十三月","第十四月","第十五月", | 115 | "第八月","第九月","第十月","第十一月","第十二月","第十三月","第十四月","第十五月", |
116 | "第十六月","第十七月","第十八月","第十九月","第二十月","第二十一月","第二十二月","第二十三月","第二十四月"]; | 116 | "第十六月","第十七月","第十八月","第十九月","第二十月","第二十一月","第二十二月","第二十三月","第二十四月"]; |
117 | - var monthDataY = Number('{$monthData}'); | 117 | + var monthDataY = JSON.parse('{$monthData}'); |
118 | 118 | ||
119 | 119 | ||
120 | 120 | ||
@@ -124,7 +124,7 @@ | @@ -124,7 +124,7 @@ | ||
124 | echarts: 'http://echarts.baidu.com/build/dist' | 124 | echarts: 'http://echarts.baidu.com/build/dist' |
125 | } | 125 | } |
126 | }); | 126 | }); |
127 | - | 127 | + |
128 | // 使用 | 128 | // 使用 |
129 | require( | 129 | require( |
130 | [ | 130 | [ |
@@ -199,7 +199,7 @@ | @@ -199,7 +199,7 @@ | ||
199 | type:'bar', | 199 | type:'bar', |
200 | //stack: '总量', | 200 | //stack: '总量', |
201 | barMaxWidth : 15, | 201 | barMaxWidth : 15, |
202 | - | 202 | + |
203 | itemStyle:{ | 203 | itemStyle:{ |
204 | normal:{ | 204 | normal:{ |
205 | borderWidth : 3 | 205 | borderWidth : 3 |
@@ -278,7 +278,7 @@ | @@ -278,7 +278,7 @@ | ||
278 | }, | 278 | }, |
279 | data:totalDateY | 279 | data:totalDateY |
280 | } | 280 | } |
281 | - | 281 | + |
282 | ] | 282 | ] |
283 | }; | 283 | }; |
284 | //时间段统计(饼状图) | 284 | //时间段统计(饼状图) |
@@ -300,7 +300,7 @@ | @@ -300,7 +300,7 @@ | ||
300 | mark : {show: true}, | 300 | mark : {show: true}, |
301 | dataView : {show: true, readOnly: false}, | 301 | dataView : {show: true, readOnly: false}, |
302 | magicType : { | 302 | magicType : { |
303 | - show: true, | 303 | + show: true, |
304 | type: ['pie', 'funnel'], | 304 | type: ['pie', 'funnel'], |
305 | option: { | 305 | option: { |
306 | funnel: { | 306 | funnel: { |
@@ -467,8 +467,8 @@ | @@ -467,8 +467,8 @@ | ||
467 | ] | 467 | ] |
468 | }; | 468 | }; |
469 | 469 | ||
470 | - // 为echarts对象加载数据 | ||
471 | - myChart.setOption(option); | 470 | + // 为echarts对象加载数据 |
471 | + myChart.setOption(option); | ||
472 | myChart2.setOption(option4); | 472 | myChart2.setOption(option4); |
473 | myChart4.setOption(option2); | 473 | myChart4.setOption(option2); |
474 | myChart10.setOption(option10); | 474 | myChart10.setOption(option10); |
-
请 注册 或 登录 后发表评论