|
|
@@ -478,6 +478,10 @@ export default {
|
|
|
},
|
|
|
}]
|
|
|
};
|
|
|
+ let rw_name=[]
|
|
|
+ for(let i=0;i<data.riskpoint_warning_top5.length;i++){
|
|
|
+ rw_name.push(data.riskpoint_warning_top5[i].riskpoint_name)
|
|
|
+ }
|
|
|
var option6 = {
|
|
|
backgroundColor:'rgba(0,0,0,0)',
|
|
|
color:['#3398dc'],
|
|
|
@@ -490,7 +494,7 @@ export default {
|
|
|
textStyle:{
|
|
|
color:'#8C8C8C',
|
|
|
},
|
|
|
- data:['风险点', '管控任务']
|
|
|
+ // data:['风险点', '管控任务']
|
|
|
},
|
|
|
grid: {
|
|
|
left: '1%',
|
|
|
@@ -500,43 +504,25 @@ export default {
|
|
|
containLabel: true
|
|
|
},
|
|
|
yAxis: {
|
|
|
- data: ['加油区1', '加油区2','加油区3','加油区4','加油区5'],
|
|
|
+ data: rw_name,
|
|
|
},
|
|
|
xAxis: {
|
|
|
show:false
|
|
|
},
|
|
|
- series: [
|
|
|
- {
|
|
|
- name: '风险点',
|
|
|
- type: 'bar',
|
|
|
- barWidth:10,
|
|
|
- data: [320, 332, 301, 334,690],
|
|
|
- itemStyle: {
|
|
|
- color: new echarts.graphic.LinearGradient(
|
|
|
- 0, 0, 0, 1,
|
|
|
- [
|
|
|
- {offset: 0, color: '#FFEE7F'},
|
|
|
- {offset: 1, color: '#E8B35F'}
|
|
|
- ]
|
|
|
- )
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- name: '管控任务',
|
|
|
- type: 'bar',
|
|
|
- barWidth:10,
|
|
|
- data: [30, 132, 201, 34,270],
|
|
|
- itemStyle: {
|
|
|
- color: new echarts.graphic.LinearGradient(
|
|
|
- 0, 0, 0, 1,
|
|
|
- [
|
|
|
- {offset: 0, color: '#7AF7FF'},
|
|
|
- {offset: 1, color: '#3687FF'}
|
|
|
- ]
|
|
|
- )
|
|
|
- },
|
|
|
+ series: [{
|
|
|
+ type: 'bar',
|
|
|
+ barWidth: 10,
|
|
|
+ data: data.riskpoint_warning_top5,
|
|
|
+ itemStyle: {
|
|
|
+ color: new echarts.graphic.LinearGradient(
|
|
|
+ 0, 0, 0, 1,
|
|
|
+ [
|
|
|
+ {offset: 0, color: '#7AF7FF'},
|
|
|
+ {offset: 1, color: '#3687FF'}
|
|
|
+ ]
|
|
|
+ )
|
|
|
},
|
|
|
- ]
|
|
|
+ }]
|
|
|
};
|
|
|
// 使用刚指定的配置项和数据显示图表。
|
|
|
myChart1.setOption(option1);
|