Echart属性【1 title】

title

title组件标题
showtrue/false
text主标题
subtext副标题
link超链接
subTextStyle /textStyle下面为subText属性值
color: '#333',
fontStyle: 'normal',
fontWeight: normal,
fontFamily: 'sans-serif',
fontSize: 18,
lineHeight: ...,
width: ...,
height: ...,
textBorderColor: 'transparent',
textBorderWidth: 0,
textShadowColor: 'transparent',
textShadowBlur: 0,
textShadowOffsetX: 0,
textShadowOffsetY: 0,

title的属性

textAlign: 'auto',       整体(包括 text 和 subtext)的水平对齐   'auto'、'left'、'right'、'center'。
textVerticalAlign: 'auto', 整体(包括 text 和 subtext)的垂直对齐。 'auto'、'top'、'bottom'、'middle'。
triggerEvent: false,
padding: 5,
itemGap: 10, 主副标题之间的间距。
zlevel: 0,
z: 2,
left: 'auto',grid 组件离容器左侧的距离。  'left', 'center', 'right'  数值
top: 'auto', 			'top', 'middle', 'bottom' 数值  百分比
左上有多的属性值
right: 'auto', 			数值  百分比
bottom: 'auto', 		数值 百分比
右下数值百分比
backgroundColor: 'transparent', 背景色
borderColor: '#ccc', 边框色
borderWidth: 0, 边框宽度
borderRadius: 0, 边框圆角
shadowBlur: ..., 阴影模糊范围
shadowColor: ..., 阴影颜色
shadowOffsetX: 0, 阴影X偏移
shadowOffsetY: 0,阴影Y偏移
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值