美文网首页Echarts
Echarts 之 title组件配置

Echarts 之 title组件配置

作者: A君小红红 | 来源:发表于2019-10-20 00:33 被阅读0次
title: {
      show: true,//是否显示标题组件
      text: 'ECharts 入门示例',//设置标题文本
      link: 'http://www.baidu.com',//点击标题跳转到指定地址,记得一定要带http://
      subtext: '我是副标题',//副标题文本
      sublink: 'http://www.baidu.com',//点击副标题跳转到指定地址,记得一定要带http://
      textAlign: 'left',//left/right/center/auto 默认是auto(包括 text 和 subtext)的水平对齐
      padding: [5, 10, 5, 20],//标题内边距上右下左
      itemGap: 5,//主标题和副标题的距离,默认为10,number类型
      textStyle: {//textStyle设置标题样式
        color: 'red',
        fontWeight: 'bold',
        fontSize: 18
      },
      top: 10,//top,left,right,bottom 用来设置标题与容器间的距离
      left: 50,
    }

相关文章

网友评论

    本文标题:Echarts 之 title组件配置

    本文链接:https://www.haomeiwen.com/subject/wfkomctx.html