新办
配置项如下
var colors = ['#71e3fa', '#32CD32'];
var xData = function() {
var data = [];
for (var i = 1; i < 13; i++) {
data.push(i+'月');
}
return data;
}();
option = {
title: {
text: '审批事项办理类型趋势分析',
textStyle:{
fontSize: '15'
}
},
backgroundColor:'#fff',
"tooltip": {
"trigger": "axis",
"axisPointer": {
"type": "shadow",
textStyle: {
color: "#fff"
}
},
},
grid: {
top:'7%',
bottom:'60%',
left:'6%',
right:'40%'
},
"calculable": true,
"xAxis": [{
"type": "category",
"axisLine": {
lineStyle: {
color: '#000'
}
},
"splitLine": {
"show": false
},
"axisTick": {
"show": false
},
"splitArea": {
"show": false
},
"axisLabel": {
"interval": 0,
textStyle:{
fontSize:10
}
},
"data": xData,
}],
yAxis: [
{
type: 'value',
name: '',
min: 0,
max: 1500,
position: 'left',
axisLine: {
lineStyle: {
color: '#000'
}
},
axisLabel: {
formatter: '{value} ',
textStyle:{
fontSize:10
}
}
},
{
type: 'value',
name: '',
position: 'right',
axisLine: {
lineStyle: {
color: '#000'
}
},
axisLabel: {
formatter: '{value} %',
textStyle:{
fontSize:10
}
}
}
],
series: [
{name:'新办数',
type:'bar',
color: colors[0],
barWidth : 15,
data:[764,954,879,997,758,857,984,845,803,873,790,996]},
{
name:'同比比率',
color: colors[1],
yAxisIndex: 1,
type:'line',
itemStyle : {
normal : {
lineStyle:{
width:3,//折线宽度
},
opacity: 0.4
}
},
data:[7.98,4.19,7.71,6.83,4.06,4.9,6.39,4.77,7.17,4.44,6.36,5.07]
}]
};