当前位置: 代码迷 >> 综合 >> echarts设置主标题和副标题样式
  详细解决方案

echarts设置主标题和副标题样式

热度:75   发布时间:2024-01-25 11:49:28.0

title: {

              text: '主标题',

              left: 'center',

              textStyle: {

                color:'#333',

                fontSize: 18, // 务必记住设置文字大小只能是数字

                fontWeight: 'lighter'

              }, // 主标题样式

              subtext: '副标题',

              subtextStyle: {

                color:'#333',

                fontSize: 12,

                fontWeight: 'normal'

              }, // 副标题样式

            },