话不多说先上图:
echarts代码:
option = {
backgroundColor: '#0f164a', \\ 背景
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
label: {
show: true,
position: 'top'
},
legend: {
data: ['line', 'bar'],
textStyle: {
color: '#ccc'
}
},
xAxis: {
type: 'category',
axisLabel: {
textStyle: {
color: '#fff'
}
},
axisLine: {
//x轴线的颜色以及宽度
show: true,
lineStyle: {
color: '#0e96b0',
width: 1,
type: 'solid'
}
},
splitLine: {
//分割线配置
show: false,
lineStyle: {
color: '#fff'
}
},
data: ['FSAPP1', 'FSAPP2', 'FSAPP3', 'FSAPP4']
},
yAxis: {
axisLine: {
//x轴线的颜色以及宽度
show: true,
lineStyle: {
color: '#0e96b0',
width: 1,
type: 'solid'
}
},
type: 'value',
axisLabel: {
textStyle: {
color: '#fff'
}
},
splitLine: {
//分割线配置
lineStyle: {
color: '#014294'
}
}
},
series: [
{
name: 'line',
type: 'bar',
barGap: '-100%',
barWidth: 15,
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
{ offset: 0, color: '#003792' },
{ offset: 0.5, color: '#036aa4' },
{ offset: 1, color: '#08c9c4' }
])
},
z: 10,
data: [10, 243, 16, 86]
},
{
type: 'pictorialBar',
symbol: 'rect',
itemStyle: {
color: '#0f164a'
},
label: {
show: false,
position: 'top'
},
symbolRepeat: true,
symbolSize: [16, 2],
symbolMargin: 3,
z: 12,
data: [10, 243, 16, 86]
}
]
};