title:{ //配置标题组件
show: 'true', //是否显示,false
text: '主标题', //图表主标题
link: 'https://echarts.apache.org/zh/index.html', //点击主标题跳转链接
target: 'blank', //链接跳转方式 blank新窗口 self自身窗口
textStyle:{ //主标题文字样式
color: 'red', //主标题颜色
fontStyle: 'normal', //主标题字体风格 normal默认,italic斜体,oblique斜体
fontWeight:'bold', //主标题文字粗细, normal正常,bold加粗,bolder加粗,lighter变细
fontFamily: 'san-serif', //主标题文字字体,默认微软雅黑
fontSize:18 //主标题字体大小 默认18px
},
textAlign:'left', //设置标题水平位置 center居中 left靠左 right靠右
textBaseline:'top', //设置标题垂直位置 center居中
subtext: '副标题', //图表副标题
sublink: 'https://echarts.apache.org/zh/index.html', //点击副标题跳转链接
subtarget: 'blank',
subtext:{
color: 'blue',
fontStyle: 'normal',
fontWeight:'bold',
fontFamily: 'san-serif',
fontSize:18
},
padding:5, //内边距
itemGap:10, //主副标题之间距离
backgroundColor: 'rgba(128,128,128,0.1)', //背景颜色
borderColor: 'green', //边框颜色
borderWidth:2, //边框宽
shadowBlue:10, //阴影模糊大小
shadowColor:'yellow', //阴影颜色
shadowOffsetx:0, //阴影x轴偏移
shadowOffsety:0 //阴影y轴偏移
},
ECharts图表 title标题组件常用配置项
最新推荐文章于 2024-06-23 23:13:06 发布