title的练习echarts 配置项内容和展示

基本能满足文本的样式

配置项如下
      option = {
    title: {
        text: '百度',
        link: 'http://www.baidu.com', // 标题链接
        target: 'blank', // 默认
        textStyle: {
            color: 'orange', // 颜色
            fontStyle: 'oblique', // 
            fontWeight: 'lighter',
            fontFamily: 'Microsoft YaHei',
            fontSize: 20,
            lineHeight: '50',
            textBorderColor: '#fff',
            textBorderWidth: 3,
            textShadowColor: 'red',
            textShadowBlur: 1,
            textShadowOffsetX: 1
        },
        subtext: '百度贴吧',
        sublink: 'http://tieba.baidu.com',
        subtextStyle: {
            lineHeight: 10
        },
        // textAlign: 'right',
        // textVerticalAlign: 'top',
        padding: [10, 20],
        backgroundColor: '#4f89f5',
        borderColor: '#000',
        borderWidth: 1,
        borderRadius: 4,
        shadowColor: 'red',
        shadowBlur: 5
    }
};
    
截图如下