样式入上图,这个真是费劲啊(可能由于本人较菜),图片已经转成svg,如果有本地的图片可按照注释方式去引入
option = {
// backgroundColor: 'transparent',
grid: {
left: '0%',
top: '0%',
right: '85',
bottom: '0%',
containLabel: true
},
xAxis: [
{
show: false
}
],
yAxis: [
{
axisTick: 'none',
axisLine: 'none',
axisLabel: {
textStyle: {
color: '#fff', //y轴字体颜色
fontSize: '10',
fontFamily: 'Source Han Sans CN-Medium, Source Han Sans CN',
fontWeight: '500'
}
},
data: ['topic5', 'topic4', 'topic3', 'topic2', 'topic1']
},
{
show: false
},
{
axisLine: {
lineStyle: {
color: 'rgba(0,0,0,0)' //y轴线颜色
}
},
data: []