🍓 作者主页:💖仙女不下凡💖
🍓 前言介绍:以下👇内容是我个人对于该技术的总结,如有不足与错误敬请指正!
🍓 欢迎点赞👍 收藏⭐ 留言📝 相关账号会持续发布关于文章Echart的相关文章欢迎持续关注!
- title就是图表标题,可以控制它的属性,如颜色、位置等,当有副标题的时候title有两种写法,可以写为数组或对象,下面我就以对象形式整理title的配置项,以数组形式写例子。
title: {
show: true,
text: '',
textAlign:'auto',
textVerticalAlign:'auto',
padding:0,
left:'auto',
right:'auto',
top:'auto',
bottom:'auto',
borderColor: '',
borderWidth: 1,
textStyle: {
color: '',
fontStyle: '',
fontSize: 14,
fontWeight: 400,
fontFamily: '',
lineHeight: ''
align:'center',
verticalAlign:'middle',
},
subtext: '',
subtextStyle: {
color: '#ccc',
fontStyle:'normal',
fontWeight:'normal',
fontFamily:'sans-serif',
fontSize:18,
lineHeight:18,
}
}
- 下面为大家举个例子,展示title在图表中使用的实际效果与数组写法,效果与代码如下
title: [
{
text: 'Michelson-Morley Experiment',
left: 'center'
},
{
text: 'upper: Q3 + 1.5 * IQR \nlower: Q1 - 1.5 * IQR',
borderColor: '#999',
borderWidth: 1,
textStyle: {
fontSize: 14
},
left: '10%',
top: '90%'
}
],
👉推荐相关文章:Echart图表 之 基本使用及配置项
👉推荐相关文章:Echart图表 之 颜色color配置项大全
👉推荐相关文章:Echart图表 之 legend图例组件配置项大全
👉推荐相关文章:Echart图表 之 X轴(xAxis)与Y轴(yAxis)配置项大全
👉推荐相关文章:Echart图表 之 tooltip提示框组件配置项大全
👉推荐相关文章:Echart图表 之 toolbox工具栏组件配置项大全
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)