| | |
| | | containLabel: true |
| | | }, |
| | | legend: { |
| | | data: ["服务对象数量"], |
| | | data: ["服务客户数量"], |
| | | top: "0%", |
| | | textStyle: { |
| | | color: "#fff" |
| | |
| | | return option; |
| | | } |
| | | function bottomOption1(alldata) { |
| | | let baoan = []; |
| | | let chiz = []; |
| | | let paiq = []; |
| | | alldata.forEach(item => { |
| | | for (var i in item) { |
| | | for (var j in item[i]) { |
| | | if (i === "baoan") { |
| | | baoan.push(item[i][j]); |
| | | } else if (i === "chiz") { |
| | | chiz.push(item[i][j]); |
| | | } else if (i === "paiq") { |
| | | paiq.push(item[i][j]); |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | let option = { |
| | | // title: { |
| | | // text: "公司运营趋势", |
| | |
| | | // }, |
| | | color: [ |
| | | "#73c0de", |
| | | |
| | | "#fac858", |
| | | "#91cc75", |
| | | "#3ba272", |
| | |
| | | name: "保安员数量", |
| | | type: "line", |
| | | stack: "总量", |
| | | data: [120, 132, 101, 134, 90, 230, 210, 113, 221, 42, 152, 111] |
| | | data: baoan |
| | | }, |
| | | { |
| | | name: "派遣数量", |
| | | type: "line", |
| | | stack: "总量", |
| | | data: [220, 182, 191, 234, 290, 330, 310, 111, 110, 91, 111, 131] |
| | | data: paiq |
| | | }, |
| | | { |
| | | name: "持证数量", |
| | | type: "line", |
| | | stack: "总量", |
| | | data: [150, 232, 201, 154, 190, 330, 410, 90, 91, 93, 112, 133] |
| | | data: chiz |
| | | } |
| | | ] |
| | | }; |
| | |
| | | barWidth: 9, |
| | | data: chiz |
| | | }, |
| | | { |
| | | name: "过考保安数", |
| | | type: "bar", |
| | | barWidth: 9, |
| | | data: [] |
| | | }, |
| | | // { |
| | | // name: "过考保安数", |
| | | // type: "bar", |
| | | // barWidth: 9, |
| | | // data: [] |
| | | // }, |
| | | { |
| | | name: "缴纳社保保安数", |
| | | type: "bar", |
| | |
| | | top: "10%", |
| | | left: "10%", |
| | | right: "2%", |
| | | bottom: "22%", |
| | | bottom: "25%", |
| | | containLabel: false |
| | | }, |
| | | xAxis: { |
| | |
| | | boundaryGap: true, |
| | | axisLabel: { |
| | | color: "#fff", |
| | | interval: 0 |
| | | interval: 0, |
| | | rotate: 40 |
| | | }, |
| | | data: [ |
| | | "一月", |
| | |
| | | return option; |
| | | } |
| | | function bottomOption2(alldata) { |
| | | let data = []; |
| | | let qcount = alldata["qcount"] || 0; |
| | | data.push({ name: "青年", value: qcount }); |
| | | let zcount = alldata["zcount"] || 0; |
| | | data.push({ name: "中年", value: zcount }); |
| | | let lcount = alldata["lcount"] || 0; |
| | | data.push({ name: "老年", value: lcount }); |
| | | |
| | | let option = { |
| | | tooltip: { |
| | | trigger: "item", |
| | |
| | | type: "pie", |
| | | center: ["33%", "50%"], |
| | | radius: "70%", |
| | | data: [ |
| | | { value: 1048, name: "青年" }, |
| | | { value: 735, name: "中年" }, |
| | | { value: 580, name: "老年" } |
| | | ], |
| | | data: data, |
| | | label: { |
| | | color: "#fff" |
| | | } |