| | |
| | | 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 = []; |
| | | for (var key in alldata) { |
| | | let obj = null; |
| | | if (key === "lcount") { |
| | | obj = { |
| | | name: "老年", |
| | | value: alldata[key] |
| | | }; |
| | | } else if (key === "zcount") { |
| | | obj = { |
| | | name: "中年", |
| | | value: alldata[key] |
| | | }; |
| | | } |
| | | else if (key === "qcount") { |
| | | obj = { |
| | | name: "青年", |
| | | value: alldata[key] |
| | | }; |
| | | } |
| | | data.push(obj); |
| | | } |
| | | 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" |
| | | } |