var echartsInstance = echarts.init(document.getElementById('DOMid'))
echartsInstance.setOption({
title:{
text:'',
subtext:''
sublink:'' //副标题文本超链接
textStyle:{
overflow:'none','truncate','break','breakAll'
},
subtextStyle:{
align:'left','center','right'
},
borderWidth:2,
borderColor:'red',
left:100 //具体像素值
20% //相对于容器宽高的百分比
'center'/'left'/'right' //根据相应位置自动对齐
}
})
echarts中setOption对title的设置
最新推荐文章于 2025-03-13 09:56:19 发布