| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>话务统计报表</title>
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <style>
- * {
- font-family: "微软雅黑";
- }
-
- @font-face {
- font-family: 'iconfont';
- /* project id 280843 */
- src: url('//at.alicdn.com/t/font_280843_jcy5ehwi2vxtj4i.eot');
- src: url('//at.alicdn.com/t/font_280843_jcy5ehwi2vxtj4i.eot?#iefix') format('embedded-opentype'), url('//at.alicdn.com/t/font_280843_jcy5ehwi2vxtj4i.woff') format('woff'), url('//at.alicdn.com/t/font_280843_jcy5ehwi2vxtj4i.ttf') format('truetype'), url('//at.alicdn.com/t/font_280843_jcy5ehwi2vxtj4i.svg#iconfont') format('svg');
- }
-
- .iconfont {
- font-family: "iconfont";
- font-size: 25px;
- font-style: normal;
- }
-
- .fl {
- float: left;
- }
-
- .fr {
- float: right;
- }
-
- .bc {
- background-color: #fefefe;
- border: 1px solid #EBEBEB;
- border-radius: 5px;
- padding: 25px 20px;
- }
-
- .size-14 {
- font-size: 14px;
- font-weight: normal;
- }
-
- .ba {
- background-color: #F5F5F5;
- border: 2px solid #EBEBEB;
- padding: 0px;
- }
-
- .left_box {
- background-color: #FFFFFF;
- }
-
- .rows {
- display: -webkit-box;
- }
-
- .lazur {
- color: #23c6c8;
- }
-
- .bottom_line {
- border-bottom: 2px solid #CCCCCC;
- }
-
- .clear {
- margin: 0;
- padding: 0;
- margin-top: 2%;
- }
-
- .widgets {
- padding: 15px 0px;
- margin-bottom: 25px;
- }
- /*.ss{
- background: url(img/huan.png) no-repeat;
- background-size: contain;
- background-position: center;
- margin-left: 20px;
- }*/
-
- .fenxian {
- border: 2px solid #CCCCCC;
- margin-bottom: 10px;
- display: inherit;
- position: absolute;
- width: 100%;
- TOP: 50%;
- }
-
- .left1 {
- LEFT: 15px;
- }
-
- .left2 {
- right: 15px;
- }
-
- .rowTitle {
- position: absolute;
- font-size: 16px;
- top: 40px;
- left: 45px;
- font-weight: 800;
- padding-bottom: 10px;
- border-bottom: 2px solid #CCCCCC;
- letter-spacing: 4px;
- }
-
- .num_box {
- background-color: #fefefe;
- border: 1px solid #EBEBEB;
- border-radius: 5px;
- margin-top: 10px;
- -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
- height: 318px;
- }
-
- .size-16 {
- font-size: 16px !important;
- }
-
- .size-14 {
- font-size: 14px !important;
- }
-
- .size-15 {
- font-size: 15px !important;
- }
-
- .size-12 {
- font-size: 12px !important;
- }
-
- .min_bottom {
- margin-bottom: 5px !important;
- }
-
- .fa-4x {
- font-size: 3em;
- color: #FFFFFF;
- background-color: #67cdcb;
- padding: 10px;
- border-radius: 5px;
- }
-
- .bg_green {
- background: -webkit-linear-gradient(left, #accafd, #b8dcfc);
- background: -moz-linear-gradient(left, #accafd, #b8dcfc);
- background: -o-linear-gradient(left, #accafd, #b8dcfc);
- background: -webkit-gradient(linear, 100% 0, 0 0, from(#b8dcfc), to(#accafd));
- background: linear-gradient(left, #accafd, #b8dcfc);
- /* Opera 11.1 - 12.0 */
- /* Firefox 3.6 - 15 */
- /* 标准的语法 */
- }
-
- .bg_blue {
- /* Safari 5.1 - 6.0 */
- background: -webkit-linear-gradient(left, #f26997, #f080ce);
- background: -moz-linear-gradient(left, #f26997, #f080ce);
- background: -o-linear-gradient(left, #f26997, #f080ce);
- background: -webkit-gradient(linear, 100% 0, 0 0, from(#f080ce), to(#f26997));
- background: linear-gradient(left, #f26997, #f080ce);
- /* Opera 11.1 - 12.0 */
- /* Firefox 3.6 - 15 */
- /* 标准的语法 */
- }
-
- .bg_red {
- background: -webkit-linear-gradient(left, #fbc356, #fa9182);
- background: -moz-linear-gradient(left, #fbc356, #fa9182);
- background: -o-linear-gradient(left, #fbc356, #fa9182);
- background: -webkit-gradient(linear, 100% 0, 0 0, from(#fa9182), to(#fbc356));
- background: linear-gradient(left, #fbc356, #fa9182);
- /* Opera 11.1 - 12.0 */
- /* Firefox 3.6 - 15 */
- /* 标准的语法 */
- }
-
- .bg_black {
- background: -webkit-linear-gradient(left, #88eec0, #8bdedd);
- background: -moz-linear-gradient(left, #88eec0, #8bdedd);
- background: -o-linear-gradient(left, #88eec0, #8bdedd);
- background: -webkit-gradient(linear, 100% 0, 0 0, from(#8bdedd), to(#88eec0));
- background: linear-gradient(left, #88eec0, #8bdedd);
- /* Opera 11.1 - 12.0 */
- /* Firefox 3.6 - 15 */
- /* 标准的语法 */
- }
-
- .bg_wj {
- background: -webkit-linear-gradient(left, #6c77da, #7351ac);
- background: -moz-linear-gradient(left, #6c77da, #7351ac);
- background: -o-linear-gradient(left, #6c77da, #7351ac);
- background: -webkit-gradient(linear, 100% 0, 0 0, from(#7351ac), to(#6c77da));
- background: linear-gradient(left, #6c77da, #7351ac);
- /* Opera 11.1 - 12.0 */
- /* Firefox 3.6 - 15 */
- /* 标准的语法 */
- }
-
- .jg {
- letter-spacing: 2px;
- margin-top: -3px;
- font-weight: bolder;
- }
-
- .mt {
- margin-top: 10px;
- }
-
- .ibox-content {
- padding: 20px 20px 95px;
- background-color: #fefefe;
- border: 1px solid #EBEBEB;
- border-radius: 5px;
- -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
- box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
- }
-
- .size-20 {
- font-size: 20px;
- color: #4078ad;
- }
-
- .border_top {
- border-top: none;
- }
- /*.margin-tops{
- margin-top:-50px;
- }*/
-
- .padding-left-min {
- padding-left: 0;
- padding-top: 5px;
- }
-
- .mins-left {
- padding-left: 30px;
- padding-right: 0;
- }
-
- .widget h2,
- .widget h3 {
- margin-top: 0px;
- }
-
- .col-sm-2 {
- width: 20%;
- }
-
- .col-sm-4 {
- width: 30%;
- }
-
- .min_right {
- margin-right: 15px;
- }
-
- .col-xs-3 {
- padding-left: 5px;
- }
-
- .huan {
- background: url(./img/huan.png)no-repeat;
- }
-
- .min-padding {
- padding-bottom: 10px;
- padding-top: 10px;
- border-bottom-width: 1px;
- border-radius: 5px !important;
- padding-left: 10px;
- padding-right: 5px;
- }
-
- .progress {
- height: 5px;
- background-color: #CCCCCC;
- }
-
- .progress-bar-ff {
- background-color: #FFF;
- }
-
- .ff {
- color: #FFFFFF;
- }
-
- .c-bottom {
- margin-top: 5px;
- }
-
- .bg-purple {
- background: -ms-linear-gradient(right, #ea76dd, #8a9cf4);
- background: -webkit-gradient(linear, 100% 0, 0 0, from(#ea76dd), to(#8a9cf4));
- background: -webkit-linear-gradient(right, #ea76dd, #8a9cf4);
- background: -moz-linear-gradient(right, #ea76dd, #8a9cf4);
- background: -o-linear-gradient(right, #ea76dd, #8a9cf4);
- background: linear-gradient(right, #ea76dd, #8a9cf4);
- background: #ea76dd;
- /* Opera 11.1 - 12.0 */
- /* Firefox 3.6 - 15 */
- /* 标准的语法 */
- }
-
- .bg-blues {
- background: -ms-linear-gradient(right, #67aefe, #67aefe);
- background: -webkit-linear-gradient(right, #67aefe, #67aefe);
- background: -moz-linear-gradient(right, #67aefe, #7bd7fe);
- background: -o-linear-gradient(right, #67aefe, #7bd7fe);
- background: -webkit-gradient(linear, 100% 0, 0 0, from(#67aefe), to(#7bd7fe));
- background: linear-gradient(right, #67aefe, #7bd7fe);
- background: #67aefe;
- /* Opera 11.1 - 12.0 */
- /* Firefox 3.6 - 15 */
- /* 标准的语法 */
- }
-
- .bg-yellow {
- background: -ms-linear-gradient(right, #f95a84, #f86953);
- background: -webkit-linear-gradient(right, #f95a84, #f86953);
- background: -moz-linear-gradient(right, #f95a84, #f86953);
- background: -o-linear-gradient(right, #f95a84, #f86953);
- background: -webkit-gradient(linear, 100% 0, 0 0, from(#f95a84), to(#f86953));
- background: linear-gradient(right, #f95a84, #f86953);
- background: #f95a84;
- /* Opera 11.1 - 12.0 */
- /* Firefox 3.6 - 15 */
- /* 标准的语法 */
- }
- /*.p-xl{
- border-width: 5px;
- border-style: solid;
- border-color: #69cbd0 #69cbd0 #be8bd6 #47bde3 ;
- border-radius: 50%;
- }*/
-
- .c-bottom {
- width: 29%;
- overflow: hidden;
- margin-right: 5px;
- float: left;
- }
-
- .c-bottom ul {
- overflow: hidden;
- width: 100%;
- padding-left: 0px;
- list-style: none;
- margin-top: 3px;
- cursor: pointer;
- }
-
- .Text {
- width: 100%;
- padding-bottom: 30px;
- position: relative;
- }
-
- .c-b-ul {
- list-style: none;
- padding-left: 0;
- }
-
- .c-b-ul span {
- position: absolute;
- left: 20px;
- top: 62px;
- font-weight: 600;
- font-size: 15px;
- color: #676a6c;
- }
-
- .c-b-ul #jrdwcl {
- top: 112px;
- }
-
- .c-b-ul #dydwcl {
- top: 162px;
- }
-
- .Announcement_title span {
- font-size: 16px;
- font-weight: 800;
- line-height: 80px;
- }
-
- .Announcement_title {
- border-bottom: 1px solid #e7eaec;
- }
-
- .rl {
- float: right;
- }
-
- .Announcement_common {
- font-size: 14px;
- }
-
- .At_time {
- padding-right: 25px;
- }
-
- .Announcement_common li {
- border-bottom: 1px solid #ccc;
- }
-
- .Announcement_common li a:hover {
- color: #00a1cb;
- }
-
- .new_title {
- height: 100%;
- line-height: 30px;
- padding: 0 15px;
- }
-
- .new_title h1 {
- margin: 0;
- padding: 0;
- font-weight: normal;
- line-height: 30px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- text-align: center;
- }
-
- .new_list li {
- height: 30px;
- }
-
- li {
- list-style-type: none;
- }
-
- .new_title a {
- color: #000;
- display: block;
- width: 100%;
- color: #666;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .s-14 {
- font-size: 14px;
- }
-
- .new_title em {
- font-style: normal;
- }
-
- .Widths {
- width: 50%;
- margin-top: 8%;
- }
-
- .BackC {
- background-color: #e7eaec;
- }
-
- .Colors {
- color: #6c77da;
- }
-
- .Nums_ul li {
- width: 25%;
- float: left;
- font-size: 18px;
- }
-
- .Tops {
- line-height: 50px;
- background-color: #fefefe;
- border: 1px solid #EBEBEB;
- border-radius: 5px;
- }
-
- .SLs {
- font-size: 18px;
- }
-
- .Red {
- color: #e43926;
- }
- </style>
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="row" style="margin-bottom: 20px;">
- <div class="col-sm-12 LIST_ Tops" style="margin:0 15px ;width: 98.2%;">
- <div class="col-md-2 " style="text-align: center; font-size: 20px;">
- <span>年度诉求</span>
- </div>
- <div class="col-md-10 ">
- <ul class="Nums_ul">
- <li>
- <span class="">受理总量: <span class="zslcount Red"></span></span>
- </li>
- <li>
- <span>未转交数: <span class="wjbcount Red"></span></span>
- </li>
- <li>
- <span>正在办理: <span class='blzcount Red'></span></span>
- </li>
- <li>
- <span>办理完结: <span class="yblcount Red"></span></span>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div class="row" style="margin-bottom: 20px;">
- <div class="col-sm-12 LIST_ Tops" style="margin:0 15px ;width: 98.2%;">
- <div class="col-md-2 " style="text-align: center; font-size: 20px;">
- <span>今日受理</span>
- </div>
- <div class="col-md-10 ">
- <ul class="Nums_ul SLs">
- </ul>
- </div>
- </div>
- </div>
- <div class="row" style="margin-bottom: 20px;">
- <div class="col-sm-4 LIST_">
- <div class="left_box rows num_box">
- <div class="Announcement_box" style="width: 100%;">
- <div class="Announcement_title clearfix">
- <span style="padding-left: 25px;">当日话务统计</span>
- </div>
- <div class="Announcement_common">
- <ul style="padding: 0;" class="Ann">
- <li>
- <div class="new_title clearfix">
- <h1 class=" s-14">
- <span >总呼入量:<span class="Colors"></span></span>
- </h1>
- </div>
- </li>
- <li class="BackC">
- <div class="new_title clearfix">
- <h1 class=" s-14">
- <span>总接通量:<span class="Colors"></span></span>
- </h1>
- </div>
- </li>
- <li>
- <div class="new_title clearfix">
- <h1 class=" s-14">
- <span>接通率:<span class="Colors"></span></span>
- </h1>
- </div>
- </li>
- <li class="BackC">
- <div class="new_title clearfix">
- <h1 class=" s-14">
- <span>总呼出量:<span class="Colors"></span></span>
- </h1>
- </div>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-4 LISTS " style="width: 40%;display: none;">
- <div class="ibox float-e-margins mt">
- <div class="ibox-content">
- <div class="flot-chart">
- <div class="flot-chart-content" id="flot-pie-chart" style="height: 295px;width: 100%;"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-4 LIST_ ">
- <div class="left_box rows num_box">
- <div style="width: 100%;">
- <div class=" clear">
- <div class="widgets p-xl ss" id="hx" style="height: 300px;">
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row LISTS" style="display: none;">
- <div class="col-sm-12">
- <div class="ibox-content">
- <div class="ibox float-e-margins">
- <div class="ibox-title border_top padding-left-min">
- </div>
- <div style="width: 100%;">
- <div class="flot-chart-content" id="flot-line-chart" style='height: 400px;'></div>
- </div>
- <input type="hidden" id="RoleCode" />
- </div>
- </div>
- </div>
- </div>
- </div>
- <script src="../js/content.min.js?v=1.0.0"></script>
- <script src="../js/echarts.common.min.js"></script>
- <script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
- <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
- <script>
- var inval;
- var xArr = [] //柱形图;
- var yArr = [] //柱形图;
- var BArr = [] //饼状图
- //数组
- $(document).ready(function() {
- teltotal()
- DL()
- if(inval) {
- clearInterval(inval);
- }
- // inval = setInterval(function() {
- // teltotal();
- // telhour();
- // telday();
- // }, huayi.config.indextime);
- })
- if($.cookie("token") == null) {
- window.location.href = "login.html";
- }
- function DL() {
- $.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
- "token": $.cookie("token")
- }, function(result) {
- if(result.state.toLowerCase() == "success") {
- $("#RoleCode").val(result.data.user.F_RoleCode);
- if(result.data.user.F_RoleCode == "WLDW") { //改为除网络单位看不到,其他都能看到
- $(".LISTS").hide();
- $(".LIST_").addClass("Widths")
- } else {
- $(".LISTS").show();
- }
- }
- })
- }
- function teltotal() {
- $.getJSON(huayi.config.callcenter_url + 'DataAnalysis/GetTelReport', {
- "token": $.cookie("token")
- }, function(result) {
- if(result.state.toLowerCase() == "success") {
- //办理量
- $(".zslcount").text(result.data.ComplexReport[0].zslcount);
- $(".wjbcount").text(result.data.ComplexReport[0].wjbcount);
- $(".blzcount").text(result.data.ComplexReport[0].blzcount);
- $(".yblcount").text(result.data.ComplexReport[0].yblcount);
- //今日受理
- for(var i = 0; i < result.data.ComplexReport1.length; i++) {
- $('<li>' +
- '<span>' + result.data.ComplexReport1[i].type + ': <span class="Red">' + result.data.ComplexReport1[i].count + '</span></span>' +
- '</li>').appendTo(".SLs")
- }
- //当日话务量
- $(".new_title").eq(0).find("span").eq(1).text(result.data.ComplexReport2[0].hrcount);
- $(".new_title").eq(1).find("span").eq(1).text(result.data.ComplexReport2[0].jtcount);
- //接通率判断
- var jt;
- if(result.data.ComplexReport2[0].jtrate == null) {
- jt = "0%";
- } else {
- jt = result.data.ComplexReport2[0].jtrate;
- }
- $(".new_title").eq(2).find("span").eq(1).text(jt);
- $(".new_title").eq(3).find("span").eq(1).text(result.data.ComplexReport2[0].hccount);
- //坐席排行榜
- for(var i = 0; i < result.data.ComplexReport3.length; i++) {
- xArr.push(result.data.ComplexReport3[i].name);
- yArr.push(result.data.ComplexReport3[i].con);
- }
- option2.series.data = yArr;
- option2.xAxis.categories = xArr;
- var chart2 = new Highcharts.Chart('flot-pie-chart', option2);
- //每小时话务量
- //图3
- var option3 = {
- title: {
- text: '每小时话务量',
- x: -20
- },
- xAxis: {
- labels: {
- style: {
- color: '#19a0f5', //颜色
- fontSize: '12px' //字体
- }
- },
- categories: ['00时','01时', '02时', '03时', '04时', '05时', '06时', '07时', '08时', '09时', '10时', '11时', '12时', '13时', '14时', '15时', '16时', '17时', '18时',
- '19时', '20时', '21时', '22时', '23时',
- ]
- },
- yAxis: {
- title: {
- text: '单位(次/时)',
- rotation: -90,
- y: -150,
- style: {
- color: '#19a0f5', //颜色
- fontSize: '14px' //字体
- }
- },
- labels: {
- style: {
- color: '#19a0f5', //颜色
- fontSize: '14px' //字体
- }
- },
- plotLines: [{
- value: 0,
- width: 1,
- color: '#808080'
- }]
- },
- tooltip: {
- valueSuffix: '次'
- },
- credits: {
- enabled: false
- },
- series: [{
- name: '呼入次数',
- data: JSON.parse(result.data.ComplexReport5[0].hrcounts.replace(/\"/g, "")),
- color: '#ffaaac'
- }, {
- name: '接听次数',
- data: JSON.parse(result.data.ComplexReport5[0].jtcounts.replace(/\"/g, "")),
- color: '#d8e7ef'
- }, {
- name: '呼出通话次数',
- data: JSON.parse(result.data.ComplexReport5[0].hccounts.replace(/\"/g, "")),
- color: '#d8e7ef'
- }, {
- name: '通话次数',
- data: JSON.parse(result.data.ComplexReport5[0].thcounts.replace(/\"/g, "")),
- color: '#d8e7ef'
- }]
- };
- var chart3 = new Highcharts.Chart('flot-line-chart', option3);
- //饼状图
- var option = {
- title: {
- text: '接听效率',
- left: 'center'
- },
- tooltip: {
- text: '接听效率',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- legend: {
- orient: 'vertical',
- // top: 'middle',
- x: 'left',
- left:25,
- top:80,
- data: ['5秒以下', '5-10秒', '10-15秒', '15秒以上']
- },
- series: [{
- type: 'pie',
- name: '接听效率',
- radius: '65%',
- center: ['50%', '50%'],
- selectedMode: 'single',
- data: [
- {
- formatter: '{a|{a}}{abg|}\n{hr|}\n {b|{b}:}{c} {per|{d}%} ',
- value:result.data.ComplexReport4[0].jt1count ,
- name: '5秒以下',
- label:{
- normal:{
- formatter: "{b}: {c} ({d}%)"
- }
- }
- },
- {
- value: result.data.ComplexReport4[0].jt2count,
- name: '5-10秒',
- label:{
- normal:{
- formatter: "{b}: {c} ({d}%)"
- }
- }
- },
- {
- value:result.data.ComplexReport4[0].jt3count,
- name: '10-15秒',
- label:{
- normal:{
- formatter: "{b}: {c} ({d}%)"
- }
- }
- },
- {
- value: result.data.ComplexReport4[0].jt4count,
- name: '15秒以上',
- label:{
- normal:{
- formatter: "{b}: {c} ({d}%)"
- }
- }
- }
- ],
- itemStyle: {
- emphasis: {
- shadowBlur: 10,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- }
- }
- }]
- };
- // option4.series[0].data = BArr;
- // var chart4 = new Highcharts.Chart('hx', option4);
- echartsPie = echarts.init(document.getElementById('hx'));
- echartsPie.setOption(option);
- }
- })
- }
- //图2
- //坐席接听排行榜
- var option2 = {
- chart: {
- type: 'column'
- },
- credits: {
- enabled: false // 禁用版权信息
- },
- exporting: {
- enabled: false
- },
- legend: {
- enabled: false
- },
- title: {
- text: '坐席接听排行榜'
- },
- xAxis: {
- categories: xArr,
- crosshair: true
- },
- yAxis: {
- min: 0,
- title: {
- text: '单位/次'
- }
- },
- tooltip: {
- headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
- pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
- '<td style="padding:0"><b>{point.y} </b></td></tr>',
- footerFormat: '</table>',
- shared: true,
- useHTML: true
- },
- series: [{
- name: '单位/次',
- data: yArr
- }]
- };
- //图4
- var option4 = {
- chart: {
- plotBackgroundColor: null,
- plotBorderWidth: null,
- plotShadow: false
- },
- credits: {
- enabled: false // 禁用版权信息
- },
- title: {
- text: '接听效率'
- },
- legend: {
- layout: 'vertical',
- align: 'left',
- verticalAlign: 'middle',
- labelFormatter: function() {
- return '<b>' + this.name + '</b>: ' +
- Highcharts.numberFormat(this.y, 0, ',');
- }
- },
- tooltip: {
- headerFormat: '{series.name}<br>',
- pointFormat: '{point.name}: <b>{point.y}</b>'
- },
- plotOptions: {
- pie: {
- allowPointSelect: true,
- cursor: 'pointer',
- dataLabels: {
- enabled: false
- },
- showInLegend: true
- }
- },
- series: [{
- type: 'pie',
- name: '接听效率',
- }]
- };
- </script>
- </body>
- </html>
|