|
@@ -978,7 +978,6 @@ let app = new Vue({
|
|
|
{
|
|
|
name: '招聘需求公告累计招聘人次',
|
|
|
type: 'bar',
|
|
|
- yAxisIndex: 1,
|
|
|
barWidth: 15,
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
@@ -1009,13 +1008,6 @@ let app = new Vue({
|
|
|
axisLine: {
|
|
|
show: false,
|
|
|
},
|
|
|
- axisLabel: {
|
|
|
- show: true,
|
|
|
- formatter: '{value}',
|
|
|
- textStyle: {
|
|
|
- color: 'rgba(250,250,250,0.6)',
|
|
|
- },
|
|
|
- },
|
|
|
})
|
|
|
myChart.setOption(option)
|
|
|
},
|
|
@@ -1050,7 +1042,6 @@ let app = new Vue({
|
|
|
name: '录用结果公示累计公示人数',
|
|
|
type: 'bar',
|
|
|
barWidth: 15,
|
|
|
- yAxisIndex: 1,
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
@@ -1079,13 +1070,6 @@ let app = new Vue({
|
|
|
axisLine: {
|
|
|
show: false,
|
|
|
},
|
|
|
- axisLabel: {
|
|
|
- show: true,
|
|
|
- formatter: '{value}',
|
|
|
- textStyle: {
|
|
|
- color: 'rgba(250,250,250,0.6)',
|
|
|
- },
|
|
|
- },
|
|
|
})
|
|
|
myChart.setOption(option)
|
|
|
},
|
|
@@ -1120,7 +1104,6 @@ let app = new Vue({
|
|
|
name: '2022年累计招聘数',
|
|
|
type: 'bar',
|
|
|
barWidth: 15,
|
|
|
- yAxisIndex: 1,
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
@@ -1142,66 +1125,28 @@ let app = new Vue({
|
|
|
option.title.text = '各四级企业年利润与招聘情况分析'
|
|
|
option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
|
|
|
option.legend.show = true
|
|
|
- option.yAxis = [
|
|
|
- {
|
|
|
- max: function (val) {
|
|
|
- if (Math.abs(val.max) > Math.abs(val.min)) {
|
|
|
- return (Math.abs(val.max) * 1.2).toFixed(0)
|
|
|
- } else {
|
|
|
- return (Math.abs(val.min) * 1.2).toFixed(0)
|
|
|
- }
|
|
|
- },
|
|
|
- min: function (val) {
|
|
|
- if (Math.abs(val.max) > Math.abs(val.min)) {
|
|
|
- return (-Math.abs(val.max) * 1.2).toFixed(0)
|
|
|
- } else {
|
|
|
- return (Math.abs(val.min) * 1.2).toFixed(0)
|
|
|
- }
|
|
|
- },
|
|
|
- splitLine: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
- axisLabel: {
|
|
|
- show: true,
|
|
|
- formatter: '{value}',
|
|
|
- textStyle: {
|
|
|
- color: 'rgba(250,250,250,0.6)',
|
|
|
- },
|
|
|
- },
|
|
|
+ option.yAxis.push({
|
|
|
+ max: function (val) {
|
|
|
+ if (Math.abs(val.max) > Math.abs(val.min)) {
|
|
|
+ return (Math.abs(val.max) * 1.2).toFixed(0)
|
|
|
+ } else {
|
|
|
+ return (Math.abs(val.min) * 1.2).toFixed(0)
|
|
|
+ }
|
|
|
},
|
|
|
- {
|
|
|
- max: function (val) {
|
|
|
- if (Math.abs(val.max) > Math.abs(val.min)) {
|
|
|
- return (Math.abs(val.max) * 1.2).toFixed(0)
|
|
|
- } else {
|
|
|
- return (Math.abs(val.min) * 1.2).toFixed(0)
|
|
|
- }
|
|
|
- },
|
|
|
- min: function (val) {
|
|
|
- if (Math.abs(val.max) > Math.abs(val.min)) {
|
|
|
- return (-Math.abs(val.max) * 1.2).toFixed(0)
|
|
|
- } else {
|
|
|
- return (Math.abs(val.min) * 1.2).toFixed(0)
|
|
|
- }
|
|
|
- },
|
|
|
- splitLine: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
- axisLabel: {
|
|
|
- show: true,
|
|
|
- formatter: '{value}',
|
|
|
- textStyle: {
|
|
|
- color: 'rgba(250,250,250,0.6)',
|
|
|
- },
|
|
|
- },
|
|
|
- }
|
|
|
- ]
|
|
|
+ min: function (val) {
|
|
|
+ if (Math.abs(val.max) > Math.abs(val.min)) {
|
|
|
+ return (-Math.abs(val.max) * 1.2).toFixed(0)
|
|
|
+ } else {
|
|
|
+ return (Math.abs(val.min) * 1.2).toFixed(0)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ splitLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ })
|
|
|
myChart.setOption(option)
|
|
|
},
|
|
|
initChartR4 () {
|
|
@@ -1235,7 +1180,6 @@ let app = new Vue({
|
|
|
name: '2022年累计招聘人数',
|
|
|
type: 'bar',
|
|
|
barWidth: 15,
|
|
|
- yAxisIndex: 1,
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
@@ -1264,13 +1208,6 @@ let app = new Vue({
|
|
|
axisLine: {
|
|
|
show: false,
|
|
|
},
|
|
|
- axisLabel: {
|
|
|
- show: true,
|
|
|
- formatter: '{value}',
|
|
|
- textStyle: {
|
|
|
- color: 'rgba(250,250,250,0.6)',
|
|
|
- },
|
|
|
- },
|
|
|
})
|
|
|
myChart.setOption(option)
|
|
|
},
|
|
@@ -1303,7 +1240,6 @@ let app = new Vue({
|
|
|
name: '去年同期在岗职工平均薪酬',
|
|
|
type: 'bar',
|
|
|
barWidth: 15,
|
|
|
- yAxisIndex: 1,
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
@@ -1332,13 +1268,6 @@ let app = new Vue({
|
|
|
axisLine: {
|
|
|
show: false,
|
|
|
},
|
|
|
- axisLabel: {
|
|
|
- show: true,
|
|
|
- formatter: '{value}',
|
|
|
- textStyle: {
|
|
|
- color: 'rgba(250,250,250,0.6)',
|
|
|
- },
|
|
|
- },
|
|
|
})
|
|
|
myChart.setOption(option)
|
|
|
},
|