|
@@ -539,7 +539,7 @@ let app = new Vue({
|
|
|
data: dataL7[0],
|
|
|
},
|
|
|
{
|
|
|
- name: '全员劳动生产率',
|
|
|
+ name: '全员劳动生产率同比变化',
|
|
|
type: 'line',
|
|
|
barWidth: 15,
|
|
|
yAxisIndex: 1,
|
|
@@ -562,28 +562,46 @@ let app = new Vue({
|
|
|
],
|
|
|
}
|
|
|
option.title.text = '人数变化和全员劳动生产率变化率分析'
|
|
|
- option.legend.data = ['人数变化', '全员劳动生产率']
|
|
|
+ option.legend.data = ['人数变化', '全员劳动生产率同比变化']
|
|
|
option.legend.show = true
|
|
|
option.tooltip = {
|
|
|
trigger: 'axis',
|
|
|
- formatter: '{a0}:{c0}' +'<br/>'+ '{a1}:{c1}' + '%'
|
|
|
+ formatter: '{a0}:{c0}' + '%' +'<br/>'+ '{a1}:{c1}' + '%'
|
|
|
}
|
|
|
- option.yAxis.push({
|
|
|
- type: 'value',
|
|
|
- axisLine: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
- splitLine: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
- axisLabel: {
|
|
|
- show: true,
|
|
|
- formatter: '{value} %',
|
|
|
- textStyle: {
|
|
|
- color: 'rgba(250,250,250,0.6)',
|
|
|
+ option.yAxis = [
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ splitLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ formatter: '{value} %',
|
|
|
+ textStyle: {
|
|
|
+ color: 'rgba(250,250,250,0.6)',
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
- })
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ splitLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ formatter: '{value} %',
|
|
|
+ textStyle: {
|
|
|
+ color: 'rgba(250,250,250,0.6)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ]
|
|
|
myChart.setOption(option)
|
|
|
},
|
|
|
initChartL8 () {
|
|
@@ -642,24 +660,42 @@ let app = new Vue({
|
|
|
option.legend.show = true
|
|
|
option.tooltip = {
|
|
|
trigger: 'axis',
|
|
|
- formatter: '{a0}:{c0}' +'<br/>'+ '{a1}:{c1}' + '%'
|
|
|
+ formatter: '{a0}:{c0}' + '%' +'<br/>'+ '{a1}:{c1}' + '%'
|
|
|
}
|
|
|
- option.yAxis.push({
|
|
|
- type: 'value',
|
|
|
- axisLine: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
- splitLine: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
- axisLabel: {
|
|
|
- show: true,
|
|
|
- formatter: '{value} %',
|
|
|
- textStyle: {
|
|
|
- color: 'rgba(250,250,250,0.6)',
|
|
|
+ option.yAxis = [
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ splitLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ formatter: '{value} %',
|
|
|
+ textStyle: {
|
|
|
+ color: 'rgba(250,250,250,0.6)',
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
- })
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ splitLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ formatter: '{value} %',
|
|
|
+ textStyle: {
|
|
|
+ color: 'rgba(250,250,250,0.6)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ]
|
|
|
myChart.setOption(option)
|
|
|
},
|
|
|
// 中间图表---------------------------------------------开始
|
|
@@ -1143,7 +1179,7 @@ let app = new Vue({
|
|
|
},
|
|
|
axisLabel: {
|
|
|
show: true,
|
|
|
- formatter: '{value} %',
|
|
|
+ formatter: '{value}',
|
|
|
textStyle: {
|
|
|
color: 'rgba(250,250,250,0.6)',
|
|
|
},
|
|
@@ -1275,21 +1311,38 @@ let app = new Vue({
|
|
|
trigger: 'axis',
|
|
|
formatter: '{a0}:{c0}' + '%' +'<br/>'+ '{a1}:{c1}' + '%'
|
|
|
}
|
|
|
- option.yAxis.push({
|
|
|
- splitLine: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
- axisLabel: {
|
|
|
- show: true,
|
|
|
- formatter: '{value} %',
|
|
|
- textStyle: {
|
|
|
- color: 'rgba(250,250,250,0.6)',
|
|
|
+ option.yAxis = [
|
|
|
+ {
|
|
|
+ splitLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ formatter: '{value} %',
|
|
|
+ textStyle: {
|
|
|
+ color: 'rgba(250,250,250,0.6)',
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
- })
|
|
|
+ {
|
|
|
+ splitLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ axisLabel: {
|
|
|
+ show: true,
|
|
|
+ formatter: '{value} %',
|
|
|
+ textStyle: {
|
|
|
+ color: 'rgba(250,250,250,0.6)',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ]
|
|
|
myChart.setOption(option)
|
|
|
},
|
|
|
initChartR7 () {
|