配置项如下
option = {
backgroundColor: "#404A59",
color: ['#ffd285', '#ff733f', '#ec4863'],
title: [{
text: '各银行确认情况',
left: '1%',
top: '6%',
textStyle: {
color: '#fff'
}
}, {
text: '一致性占比',
left: '83%',
top: '6%',
textAlign: 'center',
textStyle: {
color: '#fff'
}
}],
tooltip: {
trigger: 'axis'
},
legend: {
x: 300,
top: '7%',
textStyle: {
color: '#ffd285',
},
data: ['一致性确认条数', '一致性确认金额']
},
grid: {
left: '1%',
right: '35%',
top: '16%',
bottom: '6%',
containLabel: true
},
toolbox: {
"show": false,
feature: {
saveAsImage: {}
}
},
xAxis: {
type: 'category',
"axisLine": {
lineStyle: {
color: '#FF4500'
}
},
"axisTick": {
"show": false
},
axisLabel: {
textStyle: {
color: '#fff'
}
},
boundaryGap: false,
data: ['工行', '农行', '中行', '建行', '兴业', '邮储']
},
yAxis: {
"axisLine": {
lineStyle: {
color: '#fff'
}
},
splitLine: {
show: true,
lineStyle: {
color: '#fff'
}
},
"axisTick": {
"show": false
},
axisLabel: {
textStyle: {
color: '#fff'
}
},
type: 'value'
},
series: [{
name: '一致性确认条数',
smooth: true,
type: 'line',
symbolSize: 8,
symbol: 'circle',
data: [7372, 1995, 1705, 2265, 4132, 7135],
show: false
}, {
name: '一致性确认金额',
type: 'line',
symbolSize: 8,
symbol: 'circle',
data: [50358, 7549, 15195, 31309, 36387, 6515],
show: false
},
{
type: 'pie',
center: ['83%', '33%'],
radius: ['25%', '30%'],
label: {
normal: {
position: 'center'
}
},
data: [{
value: 335,
name: '总确认情况',
itemStyle: {
normal: {
color: '#ffd285'
}
},
label: {
normal: {
formatter: '{d} %',
textStyle: {
color: '#ffd285',
fontSize: 20
}
}
}
}, {
value: 180,
name: '占位',
tooltip: {
show: false
},
itemStyle: {
normal: {
color: '#87CEFA'
}
},
label: {
normal: {
textStyle: {
color: '#ffd285',
},
formatter: '\n一致性确认条数'
}
}
}]
},
{
type: 'pie',
center: ['83%', '72%'],
radius: ['25%', '30%'],
label: {
normal: {
position: 'center'
}
},
data: [{
value: 435,
name: '用户来源分析',
itemStyle: {
normal: {
color: '#ff733f'
}
},
label: {
normal: {
formatter: '{d} %',
textStyle: {
color: '#ff733f',
fontSize: 20
}
}
}
}, {
value: 100,
name: '占位',
tooltip: {
show: false
},
itemStyle: {
normal: {
color: '#87CEFA'
}
},
label: {
normal: {
textStyle: {
color: '#FF4500',
},
formatter: '\n一致性确认金额'
}
}
}]
}]
}